コード例 #1
0
 private void FixedUpdate()
 {
     TcpManager.FixedUpdate();
     TimeManager.FixedUpdate();
     XLuaManager.FixedUpdate();
     EntityBehaviorManager.FixedUpdate();
 }
コード例 #2
0
        private static void Sync_Status(byte[] obj)
        {
            try
            {
                sync_Status.init(obj);
                Dictionary <long, EntityComp> comps = EntityCompFactory.Instance.GetComponentsInUse <SyncTransComp>();
                foreach (var aoiTtrans in sync_Status.status.Values)
                {
                    EntityComp comp = null;
                    if (comps.TryGetValue(aoiTtrans.aoiId, out comp))
                    {
                        (comp as SyncTransComp).Sync(aoiTtrans);
                    }

                    EntityBehavior behavior = EntityBehaviorManager.GetEntity(aoiTtrans.aoiId);
                    if (behavior != null)
                    {
                        behavior.SetEntityTrans(aoiTtrans);
                    }
                }
            }
            catch (Exception e)
            {
                Debug.LogError(e);
            }
        }
コード例 #3
0
 private void Update()
 {
     InputManager.Update();
     TcpManager.Update();
     //TimeManager放在XLuaManager之后,保证OperationLuaTable即使0帧回收,也不会在XLuaUpdate里被利用
     XLuaManager.Update();
     TimeManager.Update();
     EntityBehaviorManager.Update();
     HUDManager.Update();
 }