public void activateTutorial(TutorialSplashScreen t) { GameManager.inputController.disableInputController (); //Fade In currentTutorial = getTutorialSplashScreen (t); currentTutorial.SetActive (true); isActive = true; currentTutorial.GetComponent<CanvasGroup>().alpha = 0f; timer = 0f; fadingIn = true; //Fade Out }
private GameObject getTutorialSplashScreen(TutorialSplashScreen t) { if (t.Equals (TutorialSplashScreen.HowToMove)) { return howToMove; }else if (t.Equals (TutorialSplashScreen.HowToAttack)) { return howToAttack; }else if (t.Equals (TutorialSplashScreen.HowToDash)) { return howToDash; }else if (t.Equals (TutorialSplashScreen.HowToThrow)) { return howToThrow; }else if (t.Equals (TutorialSplashScreen.HowToKame)) { return howToKame; }else if (t.Equals (TutorialSplashScreen.HowToSpaceJump)) { return howToSpaceJump; }else if (t.Equals (TutorialSplashScreen.HowToSpaceJumpOrbit)) { return howToSpaceJumpOrbit; }else if (t.Equals (TutorialSplashScreen.HowToDragonslide)) { return howToDragonslide; } return null; }