Esempio n. 1
0
 public override void Awake()
 {
     animator = GetComponent <Animator>();
     if (animator == null && mainPanel != null)
     {
         animator = mainPanel.GetComponent <Animator>();
     }
 }
Esempio n. 2
0
 private bool CanTriggerAnimations()
 {
     if ((animator == null) && !lookedForAnimator)
     {
         lookedForAnimator = true;
         if (panel != null)
         {
             animator = panel.GetComponent <Animator>();
         }
     }
     return((animator != null) && (animationTransitions != null));
 }