public void ResetInputStates(GGameManager.MouseEvents mouseEvent) { foreach (StanzaObject stanza in stanzas) { stanza.ResetInputStates(mouseEvent); } }
public void ResetInputStates(GGameManager.MouseEvents mouseEvent) { ResetMouseDownStates(); ResetMouseCurrentlyDownStates(); if (mouseEvent == GGameManager.MouseEvents.MouseUp) { lastTinkerTextIndex = -9999; } }
/// <summary> /// Resets the states on mouse up. /// Reset all the Tinker graphics to normal state /// </summary> /// <param name="mouseEvent">Mouse event.</param> public virtual void ResetInputStates(GGameManager.MouseEvents mouseEvent) { if (stanzaManager != null) { stanzaManager.ResetInputStates(mouseEvent); } GTinkerGraphic[] list; if (this != null) { list = this.GetComponentsInChildren <GTinkerGraphic>(); foreach (GTinkerGraphic tinkerGraphic in list) { tinkerGraphic.MyOnMouseUp(); } } }