コード例 #1
0
    public void attack()
    {
        // Get a projectile from our pool
        PlayerSpellProjectile projectile = this.pool_projectile_get();

        // Launch projectile
        projectile.attack(this.soSpellAttack.damage(), this.attackPoint.position, this.attackPoint.forward);

        // Start cool down
        this.attackReady = false;
        this.StartCoroutine("attack_cool_down");
    }