Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch(state)
- {
- case InputStates.notWaiting:
- guiText.text = "Time until next turn: " + TimerLength.ToString("F0");
- break;
- case InputStates.waitingForLane:
- guiText.text = "Make your move\nPress \'1\' for Left Lane\nPress \'2\' for Middle Lane\nPress \'3\' for Right Lane";
- if (Input.GetKeyDown("1"))
- {
- selectedLane = Lanes.leftLane;
- laneName = "Left Lane";
- goto case InputStates.waitingForClass;
- }
- else if (Input.GetKeyDown("2"))
- {
- selectedLane = Lanes.middleLane;
- laneName = "Middle Lane";
- goto case InputStates.waitingForClass;
- }
- else if (Input.GetKeyDown("3"))
- {
- selectedLane = Lanes.rightLane;
- laneName = "Right Lane";
- goto case InputStates.waitingForClass;
- }
- break;
- case InputStates.waitingForClass:
- guiText.text = "Make your move\n" + laneName + " selected\nPress \'g\' for Gatherer\nPress \'w\' for Warrior\nPress \'t\' for Thief";
- if (Input.GetKeyDown("g"))
- {
- //spawn gatherer
- selectedCharacter = Characters.gatherer;
- goto case InputStates.notWaiting;
- }
- else if (Input.GetKeyDown("w"))
- {
- //spawn warrior
- selectedCharacter = Characters.warrior;
- goto case InputStates.notWaiting;
- }
- else if (Input.GetKeyDown("t"))
- {
- //spawn thief
- selectedCharacter = Characters.thief;
- goto case InputStates.notWaiting;
- }
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement