public void AddListener(UnityAction <int> call) { if (controlEvent == null) { controlEvent = new DirectionControlEvent(); } controlEvent.AddListener(call); }
public void Destroy() { controlEvent.RemoveAllListeners(); controlEvent = null; }