Make It Flow  v1.1
MeadowGames.MakeItFlow.Behavior Class Reference

Inherits MonoBehaviour.

Inherited by AlphaCurveBehavior, AngleCurveBehavior, CallMethodBehavior, ChangeSpriteBehavior, ColorGradientBehavior, DelayBehavior, FollowAngleToTargetBehavior, FollowPointerBehavior, FollowPointerSpringBehavior, FollowTargetPositionBehavior, LookAtPointerPositionBehavior, OutlineBehavior, PositionCurveBehavior, RectSizeCurveBehavior, RotateBehavior, ScaleBehavior, ScaleCurveBehavior, SetParentBehavior, and TranslateToTargetBehavior.

Public Member Functions

virtual void InitializeBehavior ()
 
void AddTrigger (TriggerData triggerData)
 
void RemoveTrigger (TriggerData triggerData)
 
void AddParallelMFObject (MFObject mfObject)
 
void RemoveParallelMFObject (MFObject mfObject)
 
void AddSequenceBehavior (SequenceBehaviorData sequenceBehaviorData)
 
void RemoveSequenceBehavior (SequenceBehaviorData sequenceBehaviorData)
 
void AddComplementaryBehavior (Behavior behavior)
 
void RemoveComplementaryBehavior (Behavior behavior)
 
virtual void Execute ()
 
virtual void StartBehavior ()
 
virtual void StopOnBehaviorEnd ()
 
virtual void InterruptBehavior ()
 
void ResetLocalEvents ()
 

Public Attributes

float DeltaTime => Time.deltaTime / _mfExecutionManager.behaviorsExecutionTimes
 
List< TriggerDataTriggerDataList => _triggerDataList
 
List< SequenceBehaviorDataSequenceBehavioDataList => _sequenceBehavioDataList
 
CanvasManager mfCanvasManager
 
BehaviorLocalEvents behaviorEvents = new BehaviorLocalEvents()
 

Protected Attributes

InputManager inputManager
 

Properties

List< MFObjectMFObjectsToAct [get, set]
 
MFObject MFObject [get, set]
 
List< BehaviorComplementaryBehaviors [get]