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; }
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(); }
public ScrollableFSMControl() { fsm = this.CreateFSM(); }