예제 #1
0
    IEnumerator WaitToBuildNewTower(TowerBase toSwap, TowerBase newOne, Transform transform)
    {
        yield return(new WaitForSecondsRealtime(2.5f));

        var newTower = Instantiate <TowerBase>(newOne, transform.position, transform.rotation);

        _towerManager.InitSingleTower(newTower);
        _towerManager.DestroySingleTower(toSwap);
    }