示例#1
0
        private void FixedUpdate()
        {
            if (!TickEngineSettings.single.enableTickEngine)
            {
                return;
            }

            NetMasterCallbacks.OnPreSimulateCallbacks(NetMaster.CurrentFrameId, NetMaster.CurrentSubFrameId);
        }
示例#2
0
        private void FixedUpdate()
        {
            if (!TickEngineSettings.single.enableTickEngine)
            {
                return;
            }

            /// Disable Simple if no NetObjects exist.
            if (NetObject.activeControlledNetObjs.Count == 0 && NetObject.activeUncontrolledNetObjs.Count == 0)
            {
                return;
            }

            NetMasterCallbacks.OnPreSimulateCallbacks(NetMaster.CurrentFrameId, NetMaster.CurrentSubFrameId);
        }