示例#1
0
文件: Button.cs 项目: silky/calcflow
 public virtual void PressButton(GameObject other)
 {
     if (OnButtonEnter != null)
     {
         OnButtonEnter.Invoke(other);
     }
 }
示例#2
0
        public virtual void PressButton(GameObject other)
        {
#if UNITY_EDITOR
            if (verbose)
            {
                print("button pressed");
            }
#endif
            if (OnButtonEnter != null)
            {
                OnButtonEnter.Invoke(other);
            }
        }
示例#3
0
        public virtual void PressButton(GameObject other)
        {
#if UNITY_EDITOR
            if (verbose)
            {
                print("button pressed");
            }
#endif
            if (OnButtonEnter != null)
            {
                OnButtonEnter.Invoke(other);
            }

            string eventName = gameObject.name;
            var    extra     = new Dictionary <string, object>();
            extra["parent"] = gameObject.transform.parent.name;
            if (!eventName.Equals("Body"))
            {
                StatisticsTracking.StartEvent("Button Press", eventName, extra);
            }
        }