예제 #1
0
 // Update is called once per frame
 // knockback has a knockback velocity, knockup velocity, and a knockTimer to
 // force the knockback into an arc shape.
 void FixedUpdate()
 {
     if (player != null)
     {
         // if colliding, give an amount of stun
         if (hit)
         {
             spellBase.Slow(player, slowRun, reduceJump, spellDuration);
             player.GetComponent <PlayerOneMovement>().IsSlowed(true);
             StartCoroutine(Wait(this.gameObject));
         }
     }
 }