/** * Set controls */ private void Update() { TutorialUtils.ShowTutorial(TutorialCanvas, Settings); EnvironmentRender.Get().SetSkyBox(); BuildingPlacer.PlaceNewBuildingListener(); MenuController.Get().SetCanvasListener(TutorialCanvas, BuildingPickerCanvas, BuildingNameLabel, ExitCanvasDialog); Movement.SetKeyboard(CameraTransform); Movement.SetMouse(CameraTransform); Movement.SetGamePad(CameraTransform); }
/** * Set click listener for alt/Y key */ private void SetAltKeyListener(GameObject tutorialCanvas, GameObject exitCanvasDialog) { if (!ControlUtils.HelpAction()) { return; } if (exitCanvasDialog.activeSelf) { Main.Settings.Tutorial = false; TutorialUtils.ShowTutorial(tutorialCanvas, Main.Settings); exitCanvasDialog.SetActive(false); } }