Example #1
0
 public override void Exit()
 {
     if (j != null)
     {
         GameObject.Destroy(j);
         j = null;
     }
     owner.owner.Owner.DirectionLock = false;
 }
Example #2
0
 public override void AfterComplete()
 {
     if (movAttack)
     {
         spd -= Time.deltaTime * 60;
         if (spd <= 0)
         {
             if (j != null)
             {
                 GameObject.Destroy(j);
                 j = null;
             }
             return;
         }
         ownerRigid.velocity = new Vector3(Diration.x * spd, 0, Diration.y * spd);
     }
 }
Example #3
0
 public override void Complete()
 {
     //判定
     j       = ((MainWeaponDusbinTop)owner.owner).curModel.AddComponent <DamageJudgeAttackCom2>();
     j.owner = this;
 }