コード例 #1
0
/// <summary>
/// this function handles the mousedown evens on the tinkertexts of the stanza
/// </summary>
/// <param name="tinkerText">tinkertext that is pressed</param>
/// <param name="suppressAnim">bool to check whether animation is to be suppressed</param>
    public void OnMouseDown(GTinkerText tinkerText, bool suppressAnim = false)
    {
        // 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 signal the tinkerText
        tinkerText.MyMouseDown(suppressAnim);
    }