コード例 #1
0
    public void StartWave()
    {
        //print(waveName);
        StatsScript building = GameObject.Find("buildingCenter").GetComponent <StatsScript>();

        building.Repair();

        AttachWeaponScript[] aws = GameObject.Find("Buildings").GetComponentsInChildren <AttachWeaponScript>();
        for (int i = 0; i != aws.Length; ++i)
        {
            aws[i].ResetCooldown();
        }

        workerLeft = workerCount;
        blondeLeft = blondeCount;
        sailorLeft = sailorCount;
    }