Пример #1
0
 void OnEnable()
 {
     //AIEventManager.StartListening ("test", someListener);
     AIEventManager.StartListening("Spawn", SomeOtherFunction);
     AIEventManager.StartListening("Destroy", SomeThirdFunction);
     AIEventManager.StartListening("Damage", DamageListener);
 }
Пример #2
0
    //    private UnityAction spawnListener;
    //
    //    void Awake () {
    //        spawnListener = new UnityAction (Spawn);
    //    }

    void OnEnable()
    {
        //        EventManager.StartListening ("Spawn", spawnListener);
        AIEventManager.StartListening("Spawn", Spawn);
    }