Ejemplo n.º 1
0
    public GUIState(GUIFSM fsm)
    {
        finiteStateMachine = fsm;

        button = fsm.pauseMenu.button;
        box = fsm.pauseMenu.box;
        label = fsm.pauseMenu.label;

        height = PauseMenu.height;
        width = PauseMenu.width;

        sWidth = PauseMenu.sWidth;
        sHeight = PauseMenu.sHeight;
        buttonHeight = PauseMenu.buttonHeight;
    }
Ejemplo n.º 2
0
    void Awake()
    {
        button = new GUIStyle(skin.button);
        button.fontSize = 25;

        box = new GUIStyle(skin.box);
        label = new GUIStyle(skin.label);

        setSkinTextures(button, box);

        createBackgroundBox(new Color(0,0,0,0.4f));

        finiteStateMachine = createFSM();
    }
Ejemplo n.º 3
0
 public ScrollableFSMControl()
 {
     fsm = this.CreateFSM();
 }