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;
 }
 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();
 }
示例#3
0
 protected override void Start()
 {
     base.Start();
     gui = GameGUIFactory.Create(GameGUIOptions.Create(Stats.networkEnabled), (IGUIMessages)this);
 }
 public void ChangeGUIOptions(GameGUIOptions opt)
 {
     gui = GameGUIFactory.Create(opt,(IGUIMessages)this);
 }