コード例 #1
0
    /// <summary>
    /// this function handles the on paired mouse events
    /// </summary>
    /// <param name="tinkerText"></param>
    public void OnPairedMouseDown(GTinkerText tinkerText)
    {
        // if we aren't already mouse down on this text
        if (mouseDownTinkerText != null && mouseDownTinkerText != tinkerText)
        {
            // Then reset the old one
            mouseDownTinkerText.Reset();
        }

        // Assign this new one
        mouseDownTinkerText = tinkerText;

        // And trigger the tinkerText only if stanza narrate is false
        //if(stanzaNarrate==false)
        tinkerText.OnPairedMouseDown();
    }