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