Exemple #1
0
        //===================================
        //  Animation
        //===================================

        /// <summary>
        /// Set a character's emote
        /// </summary>
        /// <param name="chara"></param>
        /// <param name="emoteid"></param>
        /// <param name="duration"></param>
        public void CharSetEmote(GroundChar chara, int emoteid, int duration)
        {
            if (chara != null)
            {
                chara.StartEmote(DataManager.Instance.GetEmote(emoteid), duration);
            }
        }
        //===================================
        //  Animation
        //===================================

        /// <summary>
        /// Set a character's emote
        /// </summary>
        /// <param name="chara"></param>
        /// <param name="emoteid"></param>
        /// <param name="cycles"></param>
        public void CharSetEmote(GroundChar chara, int emoteid, int cycles)
        {
            if (chara != null)
            {
                EmoteData emote = DataManager.Instance.GetEmote(emoteid);
                chara.StartEmote(new Emote(emote.Anim, emote.LocHeight, cycles));
            }
        }