Ejemplo n.º 1
0
 void OnEnable()
 {
     //AIEventManager.StartListening ("test", someListener);
     AIEventManager.StartListening("Spawn", SomeOtherFunction);
     AIEventManager.StartListening("Destroy", SomeThirdFunction);
     AIEventManager.StartListening("Damage", DamageListener);
 }
Ejemplo n.º 2
0
    //    private UnityAction spawnListener;
    //
    //    void Awake () {
    //        spawnListener = new UnityAction (Spawn);
    //    }

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