public Shchi ServeShchi() { Broth broth = this.cookProvider.GetBroth(); var shchi = this.AddCabbage(broth); return(shchi); }
public Borsch ServeBorsch() { Broth broth = this.cookProvider.GetBroth(); var borsch = this.AddBeetroot(broth); return(borsch); }
public void connectBrothIndex(int index, Broth previous, List <GameObject> tower) { myBrothIndex = index; prev = previous; transform.position = new Vector2(prev.transform.position.x, prev.transform.position.y + 1f); thisTower = tower; }
public IEnumerator BrothSpawn() { thisTower.Add(gameObject); if (myBrothIndex == maxBroth) { gameObject.GetComponent <SpriteRenderer>().sprite = topper; yield return(new WaitForSeconds(brothTime * 2)); KillMe(); } yield return(new WaitForSeconds(brothTime)); GameObject tempObject = (GameObject)Instantiate(brothPrefab, new Vector3(transform.position.x, transform.position.y + 1f, 0), Quaternion.identity); next = tempObject.GetComponent <Broth>(); next.connectBrothIndex(myBrothIndex + 1, this, thisTower); StartCoroutine(next.BrothSpawn()); }
private Shchi AddCabbage(Broth broth) { return(new Shchi()); }
private Borsch AddBeetroot(Broth broth) { return(new Borsch()); }