示例#1
0
 public void Hide()
 {
     overloads       = null;
     currentOverload = 0;
     text            = null;
     if (this == textEditor.tokenTooltip)
     {
         textEditor.mouseHoverTime  = default(System.DateTime);
         textEditor.mouseHoverToken = null;
         textEditor.tokenTooltip    = null;
     }
     else if (this == textEditor.argumentsHint)
     {
         textEditor.argumentsHint = null;
         textEditor.CloseArgumentsHint();
     }
     try
     {
         Close();
         DestroyImmediate(this);
     }
     catch         //(System.Exception e)
     {
         //Debug.LogException(e);
     }
 }
示例#2
0
    public void Hide()
    {
        overloads       = null;
        currentOverload = 0;
        text            = null;
        if (this == textEditor.tokenTooltip)
        {
            textEditor.mouseHoverTime  = default(System.DateTime);
            textEditor.mouseHoverToken = null;
            textEditor.tokenTooltip    = null;
        }
        else if (this == textEditor.argumentsHint)
        {
            textEditor.argumentsHint = null;
            textEditor.CloseArgumentsHint();
        }
        if (!this)
        {
            return;
        }

//#if UNITY_2018_3_OR_NEWER
//		Close();
//#else
        EditorApplication.delayCall += Close;
//#endif
        //DestroyImmediate(this);
    }
示例#3
0
 public void Hide()
 {
     overloads       = null;
     currentOverload = 0;
     text            = null;
     if (this == textEditor.tokenTooltip)
     {
         textEditor.mouseHoverTime  = 0f;
         textEditor.mouseHoverToken = null;
         textEditor.tokenTooltip    = null;
     }
     else if (this == textEditor.argumentsHint)
     {
         textEditor.argumentsHint = null;
         textEditor.CloseArgumentsHint();
     }
     Close();
     DestroyImmediate(this);
 }