コード例 #1
0
        public ShipControllerNetworkManager(Object networkManager, ShipControllerEntity parent)
        {
            m_networkManager = networkManager;
            m_parent         = parent;

            MySandboxGame.Static.Invoke(RegisterPacketHandlers);
        }
コード例 #2
0
        public ShipControllerNetworkManager(Object networkManager, ShipControllerEntity parent)
        {
            m_networkManager = networkManager;
            m_parent         = parent;

            Action action = RegisterPacketHandlers;

            SandboxGameAssemblyWrapper.Instance.EnqueueMainGameAction(action);
        }