// Use this for initialization void Start() { controller = GameSceneController.getInstance(); controller.setGameMonitor(this); enemyFactory = EnemyFactory.getInstance(); gameStatus = transform.GetComponent <GameStatus>(); }
// Use this for initialization void Start() { controller = GameSceneController.getInstance(); controller.setGameMonitor(this); enemyFactory = EnemyFactory.getInstance(); data = GameData.getInstance(); remainTimeOfLevel = data.LevelTime[controller.getLevel()]; }