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);
        }
Exemplo n.º 2
0
        private void OnDisplayGoChange(ActorObj actorObj)
        {
            Transform animTrans = actorObj.GetDisplayGo().transform.Find("Anim");

            if (animTrans == null)
            {
                Anim          = null;
                AnimParamList = new List <string>();
            }
            else
            {
                Anim          = animTrans.GetComponent <Animator>();
                AnimParamList = AnimHelp.GetAllParamNames(Anim);
            }
        }
Exemplo n.º 3
0
 private void OnDisplayGoChange(ActorObj actorObj)
 {
     DisplayTrans = actorObj.GetDisplayGo().transform;
 }