Exemplo n.º 1
0
 public void changeScreenName(string name)
 {
     if (name == "splash")
     {
         currGameScreen = GAME_SCREEN.SPLASH_SCREEN;
     }
     else if (name == "pause")
     {
         currGameScreen = GAME_SCREEN.PAUSE_SCREEN;
     }
     else if (name == "died")
     {
         currGameScreen = GAME_SCREEN.DIED;
     }
     else if (name == "over")
     {
         currGameScreen = GAME_SCREEN.GAMEOVER_SCREEN;
     }
     else if (name == "credits")
     {
         currGameScreen = GAME_SCREEN.CREDITS;
     }
     else if (name == "none")
     {
         currGameScreen = GAME_SCREEN.NONE;
     }
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     gm             = (GameManager)GameObject.Find("GameManager").GetComponent(typeof(GameManager));
     _resources     = new Dictionary <string, GameObject>();
     _screens       = new List <GameObject>();
     buttons        = new List <Button> ();
     currGameScreen = GAME_SCREEN.SPLASH_SCREEN;
     loadResources();
     _flowQueue = new Queue();
     DoFlowEvent(GAME_SCREEN.SPLASH_SCREEN);
 }
Exemplo n.º 3
0
 //changes game screen
 public void DoFlowEvent(GAME_SCREEN f)
 {
     _flowQueue.Enqueue(f);
 }