public void SetCurrentBehaviour(int id) { if (current != null) { current.End(); } current = behaviours[id]; current.Beggin(); }
public void SetCurrentBehaviour(BehaviourHolder behaviour) { if (current != null) { current.End(); } current = behaviour; current.Beggin(); }