예제 #1
0
    public void SellTurret()
    {
        nodeEvent.clip = sellSFX;
        nodeEvent.Play();
        PlayerStats.money += turretBlueprint.GetAmountSell();
        GameObject effect = (GameObject)Instantiate(buildManager.sellEffect, GetBuildPosition(), Quaternion.identity);

        Destroy(effect, 5f);
        Destroy(turret);
        turretBlueprint = null;
    }