コード例 #1
0
        public NetworkGameObjectPrefabSpawnContext(NetworkEntityGuid guid, GameObjectPrefab prefabId, INetPeer peer)
        {
            //TODO: Check refs

            PrefabId    = prefabId;
            NetworkGuid = guid;
            NetworkPeer = peer;
        }
コード例 #2
0
 public GameObjectEntitySpawnEventPayload(NetworkEntityGuid entityGuid, Vector3Surrogate position, QuaternionSurrogate rotation,
                                          Vector3Surrogate scale, GameObjectPrefab prefabId, byte state)
     : base(entityGuid, position, rotation)
 {
     //TODO: Check values/refs
     Scale        = scale;
     PrefabId     = prefabId;
     CurrentState = state;
 }