Exemple #1
0
 /// <summary>
 /// Dos the animation idle.
 /// </summary>
 /// <param name="ui">User interface.</param>
 public void DoAnimIdle(UIManBase ui)
 {
     if (ui.motionIdle == UIMotion.CUSTOM_MECANIM_ANIMATION)               //Custom animation use animator
     {
         ui.animRoot.EnableAndPlay(UIManDefine.ANIM_IDLE);
     }
     else if (ui.motionHide == UIMotion.CUSTOM_SCRIPT_ANIMATION)                 //Custom animation use overrided function
     {
         StartCoroutine(DelayDequeueDialog(ui.AnimationIdle(), ui, false));
     }
     else                 // Simple tween
                          //UnuUnuLogger.Log("UIMan does not support simple tween animation for idle yet!");
     {
     }
 }
Exemple #2
0
        /// <summary>
        /// Dos the animation idle.
        /// </summary>
        /// <param name="ui">User interface.</param>
        public void DoAnimIdle(UIManBase ui)
        {
            if (ui.motionIdle == UIMotion.CustomMecanimAnimation)
            {
                // Custom animation use animator
                ui.animRoot.EnableAndPlay(UIManDefine.ANIM_IDLE);
            }
            else if (ui.motionHide == UIMotion.CustomScriptAnimation)
            {
                // Custom animation use overrided function
                ui.animRoot.Disable();
                StartCoroutine(DelayDequeueDialog(ui.AnimationIdle(), ui, false));
            }
            else
            {
                // Simple tween
                ui.animRoot.Disable();

                if (ui.motionIdle != UIMotion.None && ui.motionIdle != UIMotion.Hidden)
                {
                    UnuLogger.LogWarning("UIMan does not support simple tween animation for idle yet!", this);
                }
            }
        }