예제 #1
0
 public override void Deactivated(Microsoft.Xna.Framework.GameTime gameTime, Levels.Level level)
 {
     if (_boomerang != null)
     {
         _boomerang.Attack(gameTime, level, false, Vector2.Zero);
     }
 }
예제 #2
0
    public IEnumerator AnimateAttack(GameController.Direction direction)
    {
        yield return(new WaitForSeconds(1f));

        boomerang.Attack(direction);
        boomerang.transform.localScale = new Vector3(0.4f, 0.6f, 1);
    }