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; }
public void AddBurnedCube(CookingCube burnedCube) { this._BurnedCubeList.Add(burnedCube); this.BurnedCubeCount = this._BurnedCubeList.Count; }