public void Awake() { if (Instance == null) { Instance = this; } currentGameState = EGameState.start; mNotificationManager.Register(EEventType.eRestartGameEvent, IsGameFinished); input = new CInput(); playerAirplane = GameObject.Find("Player"); controller = new CPlayerController(); playerAirplane.GetComponent <CAirClass>().setBehaviorController(controller); input.RegisterObserver(controller, 1); }