Exemplo n.º 1
0
 public override void Exit()
 {
     if (j != null)
     {
         GameObject.Destroy(j);
         j = null;
     }
     owner.owner.Owner.DirectionLock = false;
     movAttack = false;
 }
Exemplo n.º 2
0
 public override void Complete()
 {
     //伤害判定
     j       = ((MainWeaponDusbinTop)owner.owner).curModel.AddComponent <DamageJudgeAttackCom1>();
     j.owner = this;
     ((MainWeaponDusbinTop)owner.owner).CombTime = 1.2f;
     if (movAttack)
     {
         spd = 9f;
     }
 }
Exemplo n.º 3
0
 public override void AfterComplete()
 {
     if (movAttack)
     {
         spd -= Time.deltaTime * 18;
         if (spd <= 0)
         {
             if (j != null)
             {
                 GameObject.Destroy(j);
                 j = null;
             }
             return;
         }
         ownerRigid.velocity = new Vector3(Diration.x * spd, 0, Diration.y * spd);
     }
 }