예제 #1
0
 void AddBehavior(ActorBehavior behavior, bool enabled = true)
 {
     behavior.Awake(this);
     behavior.Enable(enabled);
     behaviours.Add(behavior);
     countBehaviors++;
 }
예제 #2
0
 void AddBehavior(ActorBehavior behavior, bool enabled = true)
 {
     behavior.Awake(this);
     behavior.Enable(enabled);
 }