Exemplo n.º 1
0
 public void ResetInputStates(GGameManager.MouseEvents mouseEvent)
 {
     foreach (StanzaObject stanza in stanzas)
     {
         stanza.ResetInputStates(mouseEvent);
     }
 }
Exemplo n.º 2
0
    public void ResetInputStates(GGameManager.MouseEvents mouseEvent)
    {
        ResetMouseDownStates();
        ResetMouseCurrentlyDownStates();

        if (mouseEvent == GGameManager.MouseEvents.MouseUp)
        {
            lastTinkerTextIndex = -9999;
        }
    }
Exemplo n.º 3
0
    /// <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();
            }
        }
    }