public void Start() { UnityMenu = new UnityMenu(); StartButton = new ButtonGUI("Canvas/Play"); PreviousMButton = (new Nothing<ButtonGUI>()); PlusButton = (new Nothing<ButtonGUI>()); NextMButton = (new Nothing<ButtonGUI>()); LessButton = (new Nothing<ButtonGUI>()); BackButton = new ButtonGUI("Canvas/Back"); }
void Start() { anim = GetComponent <Animator>(); col = GetComponent <CapsuleCollider>(); rgdbody = GetComponent <Rigidbody>(); orgColHeight = col.height; orgVectColCenter = col.center; currentHeight = transform.position.y; stats = GetComponent <UnityStats>(); menu = gameMaster.GetComponent <UnityMenu>(); }