/// <summary> /// Animate arrow on close. /// </summary> /// <returns>The corutine.</returns> protected virtual IEnumerator CloseCorutine() { var rect = Toggle.transform as RectTransform; yield return(StartCoroutine(Animations.RotateZ(rect, 0.2f, 0, -90))); }
/// <summary> /// Animate arrow on open. /// </summary> /// <returns>The coroutine.</returns> protected virtual IEnumerator OpenCoroutine() { var rect = Toggle.transform as RectTransform; yield return StartCoroutine(Animations.RotateZ(rect, 0.2f, -90, 0)); }