public void UpdateRegister(bool isTrue)
 {
     if (!isTrue)
     {
         ResumeAnimator.RestoreAnimator(target);
     }
     target.SetActive(isTrue);
 }
Esempio n. 2
0
    public static void AddResumeAnimatorInChildren(GameObject obj)
    {
        var components = obj.GetComponentsInChildren <Animator> ();

        foreach (var item in components)
        {
            ResumeAnimator resumeAnim = item.GetComponent <ResumeAnimator> ();
            if (resumeAnim == null)
            {
                resumeAnim = item.gameObject.AddComponent <ResumeAnimator> ();
            }
        }
    }
 public void AddResumeAnimatorInChildren()
 {
     ResumeAnimator.AddResumeAnimatorInChildren(target);
 }