示例#1
0
文件: Ball.cs 项目: oclipa/Breakout
 private void disableEvents()
 {
     this.RemoveAllListeners(EventName.BallsDiedEvent);
     this.RemoveAllListeners(EventName.SubtractBallsEvent);
     IntEventManager.RemoveInvoker(EventName.BallsDiedEvent, this);
     IntEventManager.RemoveInvoker(EventName.SubtractBallsEvent, this);
 }
示例#2
0
文件: Block.cs 项目: oclipa/Breakout
 private void OnBecameInvisible()
 {
     intUnityEvents[EventName.BlockDestroyed].Invoke(1);
     IntEventManager.RemoveInvoker(EventName.PointsAdded, this);
 }