Example #1
0
 //on start, create a new world/game (the call to constructor automatically
 //	adds the first day initial params and displays it);
 void Awake()
 {
     lefty   = GameObject.Find("Slider_left");
     righty  = GameObject.Find("Slider_right");
     nextDay = GameObject.Find("NextDay").GetComponent <Button> ();
     state   = 0;
     world   = new GameBuilder1(init, spawner, spawner2);
     fill.dayOne(world, init);
     clicked = false;
     checker = false;
     StartCoroutine(spawner2.disappear());
     StartCoroutine(spawner.appear(world));
     csv = new CSVC(init.fileP());
 }