// -------------------------------------------------------------------------------------------- private void StartMenuController_Completed(object ssender, ControllerCompletedEventArgs e) { StartMenuController startMenuController = gameObject.RequireComponent <StartMenuController>(); startMenuController.enabled = false; startMenuController.Completed -= StartMenuController_Completed; }
// -------------------------------------------------------------------------------------------- private void StartMenu_Enter() { StartMenuController startMenuController = gameObject.RequireComponent <StartMenuController>(); startMenuController.enabled = true; startMenuController.Completed += StartMenuController_Completed; }