protected override void OnNonHoverted()
 {
     base.OnNonHoverted();
     foreach (BillboardText t in mActiveTexts)
     {
         if (t.UIText == null)
         {
             continue;
         }
         foreach (ChartItemEffect effect in t.UIText.GetComponents <ChartItemEffect>())
         {
             effect.TriggerOut(false);
         }
     }
     mActiveTexts.Clear();
     if (NonHovered != null)
     {
         NonHovered.Invoke();
     }
 }
Esempio n. 2
0
        protected override void OnItemLeave(object userData)
        {
            GraphEventArgs args = userData as GraphEventArgs;

            if (args == null)
            {
                return;
            }
            string category = args.Category;

            mOccupiedCateogies.Remove(category);
            mOccupiedCateogies.RemoveWhere(x => !Data.HasCategory(x));
            if (mOccupiedCateogies.Count == 0)
            {
                if (NonHovered != null)
                {
                    NonHovered.Invoke();
                }
            }
        }
Esempio n. 3
0
        protected override void OnItemLeave(object userData, string type)
        {
            GraphEventArgs args = userData as GraphEventArgs;

            if (args == null)
            {
                return;
            }

            string item = args.Category + "|" + type;

            mOccupiedCateogies.Remove(item);
            mOccupiedCateogies.RemoveWhere(x => !Data.HasCategory(x.Split('|')[0]));

            if (mOccupiedCateogies.Count == 0)
            {
                if (NonHovered != null)
                {
                    NonHovered.Invoke();
                }
            }
        }