KochamMaslo

CreateAPlayerGUI:

Sep 11th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.22 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class CreateAPlayerGUI : MonoBehaviour {
  5.  
  6.     public enum CreateAPlayerStates{
  7.         WYBORKLASY,         //display all class types
  8.         DODAWANIESTATOW,    //allocate stats where the players wants too
  9.         KONCOWE             //add name and misc items gender
  10.     }
  11.  
  12.     private DisplayCreatePlayerFunctions displayFunctions = new DisplayCreatePlayerFunctions();
  13.     public static CreateAPlayerStates currentState;
  14.  
  15.     void Start () {
  16.         currentState = CreateAPlayerStates.DODAWANIESTATOW;
  17.     }
  18.  
  19.     void Update () {
  20.         switch(currentState){
  21.         case(CreateAPlayerStates.WYBORKLASY):
  22.             break;
  23.         case(CreateAPlayerStates.DODAWANIESTATOW):
  24.             break;
  25.         case(CreateAPlayerStates.KONCOWE):
  26.             break;
  27.         }
  28.  
  29.     }
  30.  
  31.     void onGUI(){
  32.         displayFunctions.DisplayMainItems ();
  33.         if (currentState == CreateAPlayerStates.WYBORKLASY) {
  34.             //Displayer class selection function
  35.             displayFunctions.DisplayClassSelections();
  36.         }
  37.         if (currentState == CreateAPlayerStates.DODAWANIESTATOW) {
  38.             //Displayer class selection function
  39.             displayFunctions.DisplayStatAllocation();
  40.         }
  41.         if (currentState == CreateAPlayerStates.KONCOWE) {
  42.             //Displayer class selection function
  43.             displayFunctions.DisplayFinalSetup();
  44.         }
  45.     }
  46.  
  47. }
Add Comment
Please, Sign In to add comment