Esempio n. 1
0
 void RemoveText(HighLight h)
 {
     if (h.mText != null)
     {
         ChartItemEvents e = h.mText.GetComponent <ChartItemEvents>();
         h.mControl = h.mText.GetComponent <CharItemEffectController>();
         if (e != null && h.mControl != null)
         {
             e.OnMouseLeave.Invoke(e.gameObject);
             mRemoved.Add(h);
         }
         else
         {
             ChartCommon.SafeDestroy(h.mText);
         }
         e = h.mPoint.GetComponent <ChartItemEvents>();
         if (e != null)
         {
             e.OnMouseLeave.Invoke(e.gameObject);
         }
         else
         {
             ChartCommon.SafeDestroy(h.mPoint);
         }
     }
 }
Esempio n. 2
0
    IEnumerator SelectText(Text text)
    {
        yield return(new WaitForEndOfFrame());

        if (text != null)
        {
            ChartItemEvents e = text.GetComponent <ChartItemEvents>();
            if (e != null)
            {
                e.OnMouseHover.Invoke(e.gameObject);
            }
        }
    }
Esempio n. 3
0
 void RemoveText(Text text)
 {
     if (text != null)
     {
         ChartItemEvents          e       = text.GetComponent <ChartItemEvents>();
         CharItemEffectController control = text.GetComponent <CharItemEffectController>();
         if (e != null && control != null)
         {
             e.OnMouseLeave.Invoke(e.gameObject);
             mRemoved.Add(control);
         }
         else
         {
             ChartCommon.SafeDestroy(text);
         }
     }
 }