Exemplo n.º 1
0
        public override void Execute(BuffObj buff, ref AddDamageInfo damageInfo, SkillCom attacker)
        {
            SkillCom skillCom = damageInfo.target;
            ActorObj actorObj = LCMap.MapLocate.Map.GetActor(skillCom.EntityId);

            GameObject displayGo = actorObj.GetDisplayGo();

            displayGo.transform.DOComplete(false);
            displayGo.transform.DOPunchPosition(new Vector3(-0.2f * actorObj.GetDirValue(), 0, 0), shakeTime, 1, 0);
        }