public override BaseEvent Clone()
        {
            PlayHeroSoundTick playHeroSoundTick = ClassObjPool <PlayHeroSoundTick> .Get();

            playHeroSoundTick.CopyData(this);
            return(playHeroSoundTick);
        }
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            PlayHeroSoundTick playHeroSoundTick = src as PlayHeroSoundTick;

            this.targetId        = playHeroSoundTick.targetId;
            this.eventName       = playHeroSoundTick.eventName;
            this.CachedEventName = playHeroSoundTick.CachedEventName;
        }
Esempio n. 3
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            PlayHeroSoundTick tick = src as PlayHeroSoundTick;

            this.targetId        = tick.targetId;
            this.eventName       = tick.eventName;
            this.CachedEventName = tick.CachedEventName;
            if (string.IsNullOrEmpty(this.CachedEventName) && !string.IsNullOrEmpty(this.eventName))
            {
                this.CachedEventName = this.eventName + "_Down";
            }
        }