Exemplo n.º 1
0
        // -------------------
        public void RemoveAnimator(TouchControlAnimatorBase a)
        {
            if (!this.animatorList.Contains(a))
            {
//#if UNITY_EDITOR
//			Debug.Log("[" + Time.frameCount + "] Attempting to remove [" + a.name + "] animator from control [" + this.name + "]!");
//#endif
                return;
            }

            this.animatorList.Remove(a);
        }
Exemplo n.º 2
0
        // ----------------
        public void AddAnimator(TouchControlAnimatorBase a)
        {
            if (this.animatorList.Contains(a))
            {
#if UNITY_EDITOR
                Debug.Log("[" + Time.frameCount + "] Control[" + this.name + "] already contains [" + a.name + "] animator!");
#endif
                return;
            }

            this.animatorList.Add(a);
        }