Example #1
0
        public Shchi ServeShchi()
        {
            Broth broth = this.cookProvider.GetBroth();
            var   shchi = this.AddCabbage(broth);

            return(shchi);
        }
Example #2
0
        public Borsch ServeBorsch()
        {
            Broth broth  = this.cookProvider.GetBroth();
            var   borsch = this.AddBeetroot(broth);

            return(borsch);
        }
Example #3
0
 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;
 }
Example #4
0
    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());
    }
Example #5
0
 private Shchi AddCabbage(Broth broth)
 {
     return(new Shchi());
 }
Example #6
0
 private Borsch AddBeetroot(Broth broth)
 {
     return(new Borsch());
 }