예제 #1
0
    private void Spawn(int zone)
    {
        Vector3     cubePos       = this.GetSpawnPos(zone);
        GameObject  cookingCubeGO = (GameObject)Instantiate(this.CookingCubePrefab, cubePos, Quaternion.identity, this.transform);
        CookingCube cookingCube   = cookingCubeGO.GetComponent <CookingCube>();

        this._CookingCubeList.Add(cookingCube);

        this.TotalCubeCount = this._CookingCubeList.Count;
    }
예제 #2
0
    public void AddBurnedCube(CookingCube burnedCube)
    {
        this._BurnedCubeList.Add(burnedCube);

        this.BurnedCubeCount = this._BurnedCubeList.Count;
    }