// ------------------- 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); }
// ---------------- 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); }