예제 #1
0
    private float timer;                        // Counts down for the next shot

    void Awake()
    {
        towerSpawnerManager = GameObject.FindGameObjectWithTag("T_TowerSpawnerManager").GetComponent <TowerSpawnerManager>();
        startTimer          = 1f;
    }
예제 #2
0
    public Text HP;                                // Reference to the Text Hp component.

    void Awake()
    {
        baseManagement      = GameObject.FindGameObjectWithTag("T_Base").GetComponent <BaseManager>();
        towerSpawnerManager = GameObject.FindGameObjectWithTag("T_TowerSpawnerManager").GetComponent <TowerSpawnerManager>();
    }