Example #1
0
 void Tick()
 {
     if (!InitFinished)
     {
         return;
     }
     TimerHeap.Tick();
     FrameTimerHeap.Tick();
 }
Example #2
0
    // Update is called once per frame
    void Update()
    {
        TimerHeap.Tick();

        ClientService.GetSingleton().Update();

        SceneMachine.GetSingleton().OnUpdate();

        PlayerManager.GetSingleton().OnUpdate();
    }
Example #3
0
    void Update()
    {
        TimerHeap.Tick();
        FrameTimerHeap.Tick();
        if (hasInitFinish)
        {
            MogoWorld.Process();

            if (MogoWorld.thePlayer != null && MogoWorld.thePlayer.ViewTransform != null)
            {
                transform.localPosition = MogoWorld.thePlayer.ViewTransform.localPosition;
            }
        }
    }
Example #4
0
    protected override void OnResourceLoaded()
    {
        var parent = MogoWorld.m_uiManager.MogoTopUIPanel.FindChild("TopUI/Center");;

        SyncCreateUIInstanceWithRootTransform(Resources[0], parent);
        CurTimeTxt = FindTransform("CurTimeTxt").GetComponent <UILabel>();
        PreTimeTxt = FindTransform("PreTimeTxt").GetComponent <UILabel>();
        LoadingBg  = FindTransform("LoadingBg").GetComponent <UISprite>();

        CurTimeTxt.text = LanguageData.GetContent(189);

        timeId = TimerHeap.AddTimer(100, 100, ShowLoading);
        TimerHeap.Tick();

        MogoUIBtn UIBtn = FindTransform("BtnCancel").GetComponent <MogoUIBtn>();

        UIBtn.Text        = LanguageData.GetContent(4);
        UIBtn.ClickAction = OnClickCancel;
    }
 void Update()
 {
     TimerHeap.Tick();
 }
Example #6
0
 void Tick()
 {
     TimerHeap.Tick();
     FrameTimerHeap.Tick();
 }
Example #7
0
 private void Tick()
 {
     TimerHeap.Tick();
 }
Example #8
0
 public void Update()
 {
     NetTcpManager.Instance.Recv();
     TimerHeap.Tick();
 }