public void AddBehaviour(ActorBehaviour actorBehaviour) { if (!actorBehaviours.Contains(actorBehaviour)) { actorBehaviours.Add(actorBehaviour); } RefreshDictionary(); if (!actorBehaviour.initialized) { actorBehaviour.InitializeBehaviour(this); } AssignActorReferences(); }