コード例 #1
0
 public void Dispose()
 {
     startGameSignal.RemoveListener(OnStartGame);
     toMenuSignal.RemoveListener(OnToMenu);
     countdownFinishedSignal.RemoveListener(OnCountdownFinishedSignal);
     objectFellOffFloorSignal.RemoveListener(OnObjectFellOffFloor);
     restartLevelSignal.RemoveListener(OnRestartLevel);
 }
コード例 #2
0
 private void OnDestroy()
 {
     startGameSignal.RemoveListener(OnStartGame);
     gameOverSignal.RemoveListener(OnGameOverSignal);
     restartLevelSignal.RemoveListener(OnRestartLevelSignal);
     toMenuSignal.RemoveListener(OnToMenuSignal);
     mortaShootSignal.RemoveListener(OnMortaShoot);
     allBulletsShotSignal.RemoveListener(OnAllBulletsShot);
 }