public override void Start() { base.Start(); m_gameWorldModel = new GameWorldModel(this); m_gameWorldDebug = new GameWorldDebug(this); m_contextOverlayController = new ContextOverlayController(this); gameWorldView.GameWorldController = this; m_chatWindowController = null; gameWorldView.Start(); m_contextOverlayController.Start(gameWorldView.RootWidgetGroup); m_gameWorldModel.Start(); m_gameWorldDebug.Start(); // Ask the server for the complete state of the game m_gameWorldModel.RequestFullGameState(); // $TODO Play title music // Fade in the background m_readyForInput = false; Fader.AttachFaderTo(this.gameObject, Color.black, Fader.eFadeType.fadeIn, 1.0f, () => { m_readyForInput = true; }); }
public ContextOverlayView(ContextOverlayController contextOverlayController) { m_contextOverlayController = contextOverlayController; m_hotspotWidgets = new List <HotspotWidget>(); m_currentNavRef = new NavRef(-1, null); CurrentHotspot = null; m_style = contextOverlayController.ParentController.contextOverlayStyle; }
public ContextOverlayView(ContextOverlayController contextOverlayController) { m_contextOverlayController = contextOverlayController; m_hotspotWidgets = new List<HotspotWidget>(); m_currentNavRef = new NavRef(-1, null); CurrentHotspot = null; m_style= contextOverlayController.ParentController.contextOverlayStyle; }
//private ContextOverlayController m_contextOverlayController; public ContextOverlayModel(ContextOverlayController contextOverlayController) { //m_contextOverlayController = contextOverlayController; }
public override void Start() { base.Start(); m_gameWorldModel = new GameWorldModel(this); m_gameWorldDebug = new GameWorldDebug(this); m_contextOverlayController = new ContextOverlayController(this); gameWorldView.GameWorldController = this; m_chatWindowController = null; gameWorldView.Start(); m_contextOverlayController.Start(gameWorldView.RootWidgetGroup); m_gameWorldModel.Start(); m_gameWorldDebug.Start(); // Ask the server for the complete state of the game m_gameWorldModel.RequestFullGameState(); // $TODO Play title music // Fade in the background m_readyForInput = false; Fader.AttachFaderTo(this.gameObject, Color.black, Fader.eFadeType.fadeIn, 1.0f, () => { m_readyForInput = true; }); }
//private ContextOverlayController m_contextOverlayController; public ContextOverlayModel(ContextOverlayController contextOverlayController) { //m_contextOverlayController = contextOverlayController; }