void Start() { //Subscribe for local events m_OnPauseStateChanged += UIManager.HandlePauseChangeState; m_OnScoreUpdate += UIManager.UpdateScore; //Initialize AI m_AIManager = new AIManager(GameSettings.TimeBetweenShoots); //Initialize UI UIManager.OnPauseChange += ChangePause; UIManager.Init(); //Initialize Input m_InputManager = new InputManager(); //Set weight to the sun SunObject.Weight = GameSettings.SunWeight; //Initialize physics and add sun as attractor PhysicsController = new PhysicsController(); PhysicsController.AddAttractor(SunObject); //Create player and enemies CreatePlayers(); }