Ejemplo n.º 1
0
 public static GameGUIFactory Create(GameGUIOptions options, IGUIMessages messageReceiver)
 {
     GameGUIFactory ret = new GameGUIFactory();
     # if UNITY_WEBPLAYER
         ret.buttonRow = ButtonRow.Create(messageReceiver);
         ret.skillGUI = SkillGUI.Create(options.skillsEnabled, messageReceiver);
     # elif UNITY_ANDROID
         ret.buttonRow = ButtonRow.CreateAndroid(messageReceiver);
         ret.skillGUI = SkillGUI.CreateAndroid(options.skillsEnabled, messageReceiver);
     # else
         ret.buttonRow = ButtonRow.Create(messageReceiver);
         ret.skillGUI = SkillGUI.Create(options.skillsEnabled, messageReceiver);
     # endif
     ret.header = new HeaderBar(messageReceiver, options.makeNetworkGUI);
     return ret;
 }
Ejemplo n.º 2
0
 protected override void Start()
 {
     base.Start();
     graphicalEffects = (GraphicalEffectFactory)FindObjectOfType(typeof(GraphicalEffectFactory));
     tutorialPropagator = Tutorial.GetTutorialDescription(this, control);
     scenarioWindow = new ScenarioDescriptionGUI(tutorialPropagator);
     conditionChecker = tutorialPropagator.GetCondition();
     gui = GameGUIFactory.Create(tutorialPropagator.GetGUIOptions(),(IGUIMessages)this);
     tutorialPropagator.Start();
 }
Ejemplo n.º 3
0
 protected override void Start()
 {
     base.Start();
     gui = GameGUIFactory.Create(GameGUIOptions.Create(Stats.networkEnabled), (IGUIMessages)this);
 }
Ejemplo n.º 4
0
 public void ChangeGUIOptions(GameGUIOptions opt)
 {
     gui = GameGUIFactory.Create(opt,(IGUIMessages)this);
 }