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