예제 #1
0
 public static void DoEmote(string emote, GameObject player, EmoteActionManager instance)
 {
     foreach (var e in instance.emotes)
     {
         if (emote.Equals(e.EmoteName, StringComparison.CurrentCultureIgnoreCase))
         {
             e.Do(player);
             return;
         }
     }
 }
예제 #2
0
        public static bool HasEmote(string emote, EmoteActionManager instance)
        {
            string[] emoteArray = emote.Split(' ');

            foreach (var e in instance.emotes)
            {
                if (emoteArray[0].Equals(e.EmoteName, StringComparison.CurrentCultureIgnoreCase))
                {
                    return(true);
                }
            }
            return(false);
        }