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;
        });
    }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
    //private ContextOverlayController m_contextOverlayController;

    public ContextOverlayModel(ContextOverlayController contextOverlayController)
    {
        //m_contextOverlayController = contextOverlayController;
    }
Exemplo n.º 5
0
    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;
        });
    }
Exemplo n.º 6
0
 //private ContextOverlayController m_contextOverlayController;
 public ContextOverlayModel(ContextOverlayController contextOverlayController)
 {
     //m_contextOverlayController = contextOverlayController;
 }