// ************************** // Public functions // ************************** public void Start() { m_originalPos = transform.localPosition; m_currPos = m_originalPos; m_currTimeVec = new Vector3(Random.Range(0.0f, kLengthOfSine), Random.Range(0.0f, kLengthOfSine), Random.Range(0.0f, kLengthOfSine)); m_currTimeVecSign = new Vector3(RandomSign(), RandomSign(), RandomSign()); m_menuButton = GetComponent <VRStandardAssets.Menu.MenuButton>(); }
// ************************** // Public functions // ************************** public void Start() { m_menuButton = gameObject.GetComponent <VRStandardAssets.Menu.MenuButton>(); }
/* * public bool IsRotating() * { * return (Mathf.Abs(m_currRotationalSpeed) > kRotationEpsilon) || m_isBeingManuallyRotated; * } */ public void OnArrowSelectedDown(GameObject button) { m_currMenuButton = button.GetComponent <VRStandardAssets.Menu.MenuButton>(); m_currSelectArrow = button.GetComponent <SelectArrow>(); m_touchXPosLastFrame = Input.mousePosition.x; }