/// <summary> /// Start Function, initialize propreties and select first Button (having no purpose). /// </summary> void Start() { MenuHand = VRHand.oppositeOf(MGR_VRControls.mainHand); SwitchButton = (MenuHand == VRHand.Hand.RIGHT) ? VRButton.Code.B : VRButton.Code.Y; transform.SetParent(MenuHand == VRHand.Hand.RIGHT ? MGR_VRControls.get.RightHand.transform : MGR_VRControls.get.LeftHand.transform); transform.localPosition = new Vector3(0, .25f, 0); Actions = GetComponentsInChildren <Button>(); foreach (Button btn in Actions) { btn.image.color = UnselectedColor; } LoadButton(0); SavedPlayerPosition = VRUserController.main.transform.position; setActivaton(false); }