Exemplo n.º 1
0
 public void AddListener(UnityAction <int> call)
 {
     if (controlEvent == null)
     {
         controlEvent = new DirectionControlEvent();
     }
     controlEvent.AddListener(call);
 }
Exemplo n.º 2
0
 public void Destroy()
 {
     controlEvent.RemoveAllListeners();
     controlEvent = null;
 }