Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class CreateAPlayerGUI : MonoBehaviour {
- public enum CreateAPlayerStates{
- WYBORKLASY, //display all class types
- DODAWANIESTATOW, //allocate stats where the players wants too
- KONCOWE //add name and misc items gender
- }
- private DisplayCreatePlayerFunctions displayFunctions = new DisplayCreatePlayerFunctions();
- public static CreateAPlayerStates currentState;
- void Start () {
- currentState = CreateAPlayerStates.DODAWANIESTATOW;
- }
- void Update () {
- switch(currentState){
- case(CreateAPlayerStates.WYBORKLASY):
- break;
- case(CreateAPlayerStates.DODAWANIESTATOW):
- break;
- case(CreateAPlayerStates.KONCOWE):
- break;
- }
- }
- void onGUI(){
- displayFunctions.DisplayMainItems ();
- if (currentState == CreateAPlayerStates.WYBORKLASY) {
- //Displayer class selection function
- displayFunctions.DisplayClassSelections();
- }
- if (currentState == CreateAPlayerStates.DODAWANIESTATOW) {
- //Displayer class selection function
- displayFunctions.DisplayStatAllocation();
- }
- if (currentState == CreateAPlayerStates.KONCOWE) {
- //Displayer class selection function
- displayFunctions.DisplayFinalSetup();
- }
- }
- }
Add Comment
Please, Sign In to add comment