// Use this for initialization /// <summary> /// Event for the show home button. Toggles the visibility state of the home arrow. /// </summary> public void ToggleMainSquareArrow() { if (m_Arrow == null) { m_Arrow = GameManager.s_Singleton.Player.gameObject.GetComponentInChildren <MainSquareArrow>(); } IsOn = !IsOn; m_Arrow.gameObject.SetActive(IsOn); }
// Use this for initialization /// <summary> /// Event for the show home button. Toggles the visibility state of the home arrow. /// </summary> public void ToggleMainSquareArrow(bool turnOn) { if (!m_Arrow) { m_Arrow = GameManager.s_Singleton.Player.gameObject.GetComponentInChildren <MainSquareArrow>(); } m_Arrow.gameObject.SetActive(turnOn); }