private void disableEvents() { this.RemoveAllListeners(EventName.BallsDiedEvent); this.RemoveAllListeners(EventName.SubtractBallsEvent); IntEventManager.RemoveInvoker(EventName.BallsDiedEvent, this); IntEventManager.RemoveInvoker(EventName.SubtractBallsEvent, this); }
private void OnBecameInvisible() { intUnityEvents[EventName.BlockDestroyed].Invoke(1); IntEventManager.RemoveInvoker(EventName.PointsAdded, this); }