Exemple #1
0
 //---------------------------------------------------------------------
 public void resetEmotion()
 {
     GloaderEmotion.icon  = null;
     GloaderEmotion.alpha = 1;
     GloaderEmotion.SetPosition(0, 0, 0);
     TransitionEmotion.Stop(true, false);
 }
Exemple #2
0
 //---------------------------------------------------------------------
 public void setEmotion(string emotion_name, bool with_ani)
 {
     TransitionEmotion.Stop(true, false);
     GloaderEmotion.alpha = 1;
     GloaderEmotion.SetPosition(0, 0, 0);
     GloaderEmotion.icon = UIPackage.GetItemURL("Common", emotion_name);
     CasinosContext.Instance.Play(emotion_name, _eSoundLayer.LayerNormal);
     if (with_ani)
     {
         TransitionEmotion.Play();
     }
 }