/// <summary> /// shows all tooltip pointers. /// </summary> /// <param name="inputpart"></param> void showinput(eControllerPart inputpart) { disableall(); RightTouchpad.transform.parent.gameObject.SetActive(true); LeftTouchPad.transform.parent.gameObject.SetActive(true); if (inputpart == eControllerPart.rightTouchPad) { RightTouchpad.SetActive(true); } if (inputpart == eControllerPart.rightTrigger) { RightTrigger.SetActive(true); } if (inputpart == eControllerPart.rightGrip) { RightGrip.SetActive(true); } if (inputpart == eControllerPart.rightMenu) { RightMenu.SetActive(true); } if (inputpart == eControllerPart.lefttouchpad) { LeftTouchPad.SetActive(true); } if (inputpart == eControllerPart.lefttrigger) { LeftTrigger.SetActive(true); } if (inputpart == eControllerPart.leftmenu) { LeftMenu.SetActive(true); } if (inputpart == eControllerPart.leftgrip) { LeftGrip.SetActive(true); } }
/// <summary> /// This allows you to set the tutorial state manually. /// </summary> /// <param name="inputstate"></param> /// <param name="inputstring"></param> /// <param name="nextstate"></param> /// <param name="inputpart"></param> void setlevel(tutorialstateinput inputstate, string inputstring, tutorialstateinput nextstate, eControllerPart inputpart) { if ((int)inputstate == (int)curstate + 1) { tutorialText.text = inputstring; curstate = inputstate; showinput(inputpart); } }