void OnMouseUp() { if (gameObject.activeSelf) { scroll.AnimateClose(); Scroll.DeactivateClickedScroll(); } }
void OnMouseUp() { if (!StarManager.Instance.IsPlaying) { return; } if (clickedScroll != this) { DeactivateClickedScroll(); // open scroll sprite.color = activeColor; clickedScroll = this; openedScroll.Open(); } else { // close sprite.color = Color.white; clickedScroll = null; openedScroll.AnimateClose(); } }