示例#1
0
    public void AddBehaviour(ActorBehaviour actorBehaviour)
    {
        if (!actorBehaviours.Contains(actorBehaviour))
        {
            actorBehaviours.Add(actorBehaviour);
        }

        RefreshDictionary();

        if (!actorBehaviour.initialized)
        {
            actorBehaviour.InitializeBehaviour(this);
        }

        AssignActorReferences();
    }