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

        ClientService.GetSingleton().Update();

        SceneMachine.GetSingleton().OnUpdate();

        PlayerManager.GetSingleton().OnUpdate();
    }
示例#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;
            }
        }
    }
示例#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();
 }
示例#6
0
 void Tick()
 {
     TimerHeap.Tick();
     FrameTimerHeap.Tick();
 }
示例#7
0
 private void Tick()
 {
     TimerHeap.Tick();
 }
示例#8
0
 public void Update()
 {
     NetTcpManager.Instance.Recv();
     TimerHeap.Tick();
 }