mirror of
https://github.com/Steffo99/better-tee.git
synced 2024-11-24 08:14:19 +00:00
IT WORKS (#1)
This commit is contained in:
parent
f27203af4d
commit
4da71a5717
18 changed files with 413 additions and 164 deletions
|
@ -43,7 +43,7 @@ public class DrawingController : ActController
|
|||
|
||||
//Init PaletteButtons
|
||||
paletteButtons = new List<PaletteButton>();
|
||||
for(int i = 0; i < drawingSettings.palette.Count; i++) {
|
||||
for(int i = 0; i < drawingSettings.palette.Length; i++) {
|
||||
PaletteButton button = Instantiate(paletteButtonPrefab, canvas.transform).GetComponent<PaletteButton>();
|
||||
RectTransform btnTransform = button.GetComponent<RectTransform>();
|
||||
Image btnImage = button.GetComponent<Image>();
|
||||
|
|
|
@ -6,13 +6,13 @@ using UnityEngine;
|
|||
[Serializable]
|
||||
public class DrawingSettings : ActSettings {
|
||||
public Color startingColor = Color.white;
|
||||
public List<Color> palette = new List<Color>();
|
||||
public Color[] palette = null;
|
||||
public float timeLimit = 99f;
|
||||
public string actName = "Untitled";
|
||||
public string actDescription = "This Act is missing a description.";
|
||||
public string destinationPool = "default";
|
||||
|
||||
public DrawingSettings(Color startingColor, List<Color> palette, float timeLimit, string actName, string actDescription, string destinationPool) {
|
||||
public DrawingSettings(Color startingColor, Color[] palette, float timeLimit, string actName, string actDescription, string destinationPool) {
|
||||
this.type = "Drawing";
|
||||
this.startingColor = startingColor;
|
||||
this.palette = palette;
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.Collections.Generic;
|
|||
public class GameSettings
|
||||
{
|
||||
public string gameName;
|
||||
public List<ActSettings> acts;
|
||||
public ActSettings[] acts;
|
||||
public int minimumPlayers = 0;
|
||||
public int maximumPlayers = 8;
|
||||
}
|
||||
|
|
|
@ -3,10 +3,5 @@ using System;
|
|||
[Serializable]
|
||||
public struct Player {
|
||||
public string name;
|
||||
public Guid guid;
|
||||
|
||||
public Player(string name, Guid guid) {
|
||||
this.name = name;
|
||||
this.guid = guid;
|
||||
}
|
||||
public int id;
|
||||
}
|
||||
|
|
|
@ -6,8 +6,9 @@ using Mirror;
|
|||
public class PlayerMainController : MonoBehaviour
|
||||
{
|
||||
[Header("WIP")]
|
||||
public string address = "127.0.0.1:44444";
|
||||
public string address = "127.0.0.1";
|
||||
public string playerName = "Steffo";
|
||||
public string gamePassword = "ASDF";
|
||||
|
||||
void Start() {
|
||||
ConnectToServer(address, playerName);
|
||||
|
@ -42,6 +43,8 @@ public class PlayerMainController : MonoBehaviour
|
|||
|
||||
public void ConnectToServer(string address, string playerName) {
|
||||
LogFilter.Debug = true;
|
||||
Transport.activeTransport = GetComponent<TelepathyTransport>();
|
||||
NetworkClient.RegisterHandler<ConnectMessage>(OnConnect);
|
||||
NetworkClient.RegisterHandler<NetMessage.Connect.PlayerJoinSuccessful>(OnPlayerJoinSuccessful);
|
||||
NetworkClient.RegisterHandler<NetMessage.Game.Settings>(OnGameSettings);
|
||||
NetworkClient.RegisterHandler<NetMessage.Game.Start>(OnGameStart);
|
||||
|
@ -50,11 +53,15 @@ public class PlayerMainController : MonoBehaviour
|
|||
NetworkClient.RegisterHandler<NetMessage.Act.Start>(OnActStart);
|
||||
NetworkClient.RegisterHandler<NetMessage.Act.End>(OnActEnd);
|
||||
NetworkClient.Connect(address);
|
||||
}
|
||||
|
||||
public void OnConnect(NetworkConnection connection, ConnectMessage message) {
|
||||
Debug.Log("Sending NetMessage.Connect.PlayerJoin");
|
||||
NetMessage.Connect.PlayerJoin playerJoin = new NetMessage.Connect.PlayerJoin {
|
||||
playerName = playerName
|
||||
playerName = playerName,
|
||||
gamePassword = gamePassword
|
||||
};
|
||||
NetworkClient.Send<NetMessage.Connect.PlayerJoin>(playerJoin);
|
||||
connection.Send<NetMessage.Connect.PlayerJoin>(playerJoin);
|
||||
}
|
||||
|
||||
protected void OnPlayerJoinSuccessful(NetworkConnection connection, NetMessage.Connect.PlayerJoinSuccessful message) {}
|
||||
|
|
|
@ -14,10 +14,20 @@ public class ServerMainController : MonoBehaviour
|
|||
[Header("Constants")]
|
||||
public const int MAX_CONNECTIONS = 32;
|
||||
|
||||
protected void Start() {
|
||||
StartServer();
|
||||
}
|
||||
|
||||
protected void OnDestroy() {
|
||||
if(NetworkServer.active) NetworkServer.Shutdown();
|
||||
}
|
||||
|
||||
public void StartServer() {
|
||||
LogFilter.Debug = true;
|
||||
phase = GamePhase.LOBBY;
|
||||
Transport.activeTransport = GetComponent<TelepathyTransport>();
|
||||
NetworkServer.RegisterHandler<NetMessage.Connect.PlayerJoin>(OnPlayerJoin);
|
||||
NetworkServer.RegisterHandler<NetMessage.Error.InvalidPassword>(OnInvalidPassword);
|
||||
NetworkServer.RegisterHandler<NetMessage.Connect.ViewerLink>(OnViewerLink);
|
||||
NetworkServer.RegisterHandler<NetMessage.Game.Settings>(OnGameSettings);
|
||||
NetworkServer.RegisterHandler<NetMessage.Act.Results>(OnActResults);
|
||||
|
@ -25,25 +35,37 @@ public class ServerMainController : MonoBehaviour
|
|||
}
|
||||
|
||||
public void OnPlayerJoin(NetworkConnection connection, NetMessage.Connect.PlayerJoin message) {
|
||||
Debug.LogFormat("Received NetMessage.Connect.PlayerJoin from {0}", message.playerName);
|
||||
if(message.gamePassword != password) {
|
||||
connection.Send<NetMessage.Error.InvalidPassword>(new NetMessage.Error.InvalidPassword());
|
||||
connection.Disconnect();
|
||||
return;
|
||||
}
|
||||
Player newPlayer = new Player(message.playerName, new Guid());
|
||||
Player newPlayer = new Player {
|
||||
name = message.playerName,
|
||||
id = players.Count
|
||||
};
|
||||
players.Add(newPlayer);
|
||||
|
||||
NetMessage.Connect.PlayerJoinSuccessful reply = new NetMessage.Connect.PlayerJoinSuccessful {
|
||||
player = newPlayer
|
||||
};
|
||||
connection.Send<NetMessage.Connect.PlayerJoinSuccessful>(reply);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnInvalidPassword(NetworkConnection connection, NetMessage.Error.InvalidPassword message) {
|
||||
Debug.LogError("Invalid gamePassword");
|
||||
}
|
||||
|
||||
|
||||
public void OnViewerLink(NetworkConnection connection, NetMessage.Connect.ViewerLink message) {
|
||||
if(message.gamePassword != password) {
|
||||
connection.Send<NetMessage.Error.InvalidPassword>(new NetMessage.Error.InvalidPassword());
|
||||
return;
|
||||
}
|
||||
Viewer newViewer = new Viewer(new Guid());
|
||||
Viewer newViewer = new Viewer {
|
||||
id = viewers.Count
|
||||
};
|
||||
viewers.Add(newViewer);
|
||||
|
||||
NetMessage.Connect.ViewerLinkSuccessful reply = new NetMessage.Connect.ViewerLinkSuccessful {
|
||||
|
|
|
@ -84,7 +84,7 @@ public class TypingController : ActController
|
|||
submit.GetComponent<Button>().interactable = false;
|
||||
|
||||
//Create results
|
||||
results = new TypingResults(submissions);
|
||||
results = new TypingResults(submissions.ToArray());
|
||||
}
|
||||
|
||||
public override void ActCleanup() {
|
||||
|
|
|
@ -4,9 +4,9 @@ using System.Collections.Generic;
|
|||
|
||||
[Serializable]
|
||||
public class TypingResults : ActResults {
|
||||
public List<string> submissions;
|
||||
public string[] submissions;
|
||||
|
||||
public TypingResults(List<string> submissions) {
|
||||
public TypingResults(string[] submissions) {
|
||||
this.submissions = submissions;
|
||||
}
|
||||
}
|
|
@ -2,9 +2,5 @@ using System;
|
|||
|
||||
|
||||
public class Viewer {
|
||||
public Guid guid;
|
||||
|
||||
public Viewer(Guid guid) {
|
||||
this.guid = guid;
|
||||
}
|
||||
public int id;
|
||||
}
|
85
Assets/Prefabs/Misc/Server Camera.prefab
Normal file
85
Assets/Prefabs/Misc/Server Camera.prefab
Normal file
|
@ -0,0 +1,85 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &2877268334151132603
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2877268334151132600}
|
||||
- component: {fileID: 2877268334151132601}
|
||||
- component: {fileID: 2877268334151132602}
|
||||
m_Layer: 0
|
||||
m_Name: Server Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &2877268334151132600
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2877268334151132603}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!20 &2877268334151132601
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2877268334151132603}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.41509432, g: 0.13901745, b: 0.37291592, a: 1}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 1
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!81 &2877268334151132602
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2877268334151132603}
|
||||
m_Enabled: 1
|
7
Assets/Prefabs/Misc/Server Camera.prefab.meta
Normal file
7
Assets/Prefabs/Misc/Server Camera.prefab.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 26ca41ee88b1fac4899b4fe28c9e4d9f
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
89
Assets/Prefabs/Misc/Server Main Controller.prefab
Normal file
89
Assets/Prefabs/Misc/Server Main Controller.prefab
Normal file
|
@ -0,0 +1,89 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &4072765319379817587
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4072765319379817585}
|
||||
- component: {fileID: 4072765319379817586}
|
||||
- component: {fileID: 4072765319379817584}
|
||||
m_Layer: 0
|
||||
m_Name: Server Main Controller
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4072765319379817585
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4072765319379817587}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &4072765319379817586
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4072765319379817587}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 89fe2c8d614a60e42b42812f5bdcfb7f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
password: ASDF
|
||||
players: []
|
||||
phase: 0
|
||||
--- !u!114 &4072765319379817584
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4072765319379817587}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c7424c1070fad4ba2a7a96b02fbeb4bb, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
OnClientConnected:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnClientDataReceived:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnClientError:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnClientDisconnected:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnServerConnected:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnServerDataReceived:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnServerError:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnServerDisconnected:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
port: 7777
|
||||
NoDelay: 1
|
||||
serverMaxMessageSize: 16384
|
||||
clientMaxMessageSize: 16384
|
7
Assets/Prefabs/Misc/Server Main Controller.prefab.meta
Normal file
7
Assets/Prefabs/Misc/Server Main Controller.prefab.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9f4f046852b203f4a9c03eae33ac02b6
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -10,8 +10,9 @@ GameObject:
|
|||
m_Component:
|
||||
- component: {fileID: 6762738775296509207}
|
||||
- component: {fileID: 6762738775296509204}
|
||||
- component: {fileID: 1254070857}
|
||||
m_Layer: 0
|
||||
m_Name: Game Controller
|
||||
m_Name: Player Main Controller
|
||||
m_TagString: GameController
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
|
@ -43,20 +44,51 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 30f1ce6b92701f848ad6e0c94ec374c2, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
jsonData: '{ "type": "Drawing", "actName": "Sample Drawing Act", "actDescription":
|
||||
"This is a sample act that should be able to be loaded as a DrawingSettings instance.",
|
||||
"timeLimit": 66.6, "startingColor": { "r": 1.0, "g": 1.0,
|
||||
"b": 1.0, "a": 1.0 }, "palette": [ { "r":
|
||||
1.0, "g": 0.0, "b": 0.0, "a": 1.0
|
||||
}, { "r": 1.0, "g": 1.0, "b": 0.0,
|
||||
"a": 1.0 }, { "r": 0.0, "g": 1.0,
|
||||
"b": 0.0, "a": 1.0 }, { "r": 0.0,
|
||||
"g": 1.0, "b": 1.0, "a": 1.0 }, {
|
||||
"r": 0.0, "g": 0.0, "b": 1.0, "a": 1.0
|
||||
}, { "r": 1.0, "g": 0.0, "b": 1.0,
|
||||
"a": 1.0 } ], "destinationPool": "sample" }'
|
||||
address: 127.0.0.1
|
||||
playerName: Steffo
|
||||
gamePassword: ASDF
|
||||
currentAct: {fileID: 0}
|
||||
drawingControllerPrefab: {fileID: 3241962964773812264, guid: 4fd713402edcc1c43b82d4d86a713998,
|
||||
type: 3}
|
||||
typingControllerPrefab: {fileID: 2942172269146964315, guid: d91131f9599079b4d96bfefa29d77a3a,
|
||||
type: 3}
|
||||
--- !u!114 &1254070857
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6762738775296509206}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c7424c1070fad4ba2a7a96b02fbeb4bb, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
OnClientConnected:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnClientDataReceived:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnClientError:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnClientDisconnected:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnServerConnected:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnServerDataReceived:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnServerError:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnServerDisconnected:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
port: 7777
|
||||
NoDelay: 1
|
||||
serverMaxMessageSize: 16384
|
||||
clientMaxMessageSize: 16384
|
||||
|
|
|
@ -250,7 +250,7 @@ PrefabInstance:
|
|||
- target: {fileID: 1748597889071589507, guid: 03a36b784a619a14996d5de01276885e,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Main Camera
|
||||
value: Player Camera
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1748597889071589503, guid: 03a36b784a619a14996d5de01276885e,
|
||||
type: 3}
|
||||
|
|
|
@ -121,132 +121,141 @@ NavMeshSettings:
|
|||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &1004164100
|
||||
GameObject:
|
||||
--- !u!1001 &2877268335210782679
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1004164102}
|
||||
- component: {fileID: 1004164101}
|
||||
m_Layer: 0
|
||||
m_Name: Server Main Controller
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1004164101
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1004164100}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 89fe2c8d614a60e42b42812f5bdcfb7f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
password: ASDF
|
||||
players: []
|
||||
phase: 0
|
||||
--- !u!4 &1004164102
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1004164100}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1194932844
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1194932847}
|
||||
- component: {fileID: 1194932846}
|
||||
- component: {fileID: 1194932845}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &1194932845
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1194932844}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &1194932846
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1194932844}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.41509432, g: 0.13901745, b: 0.37291592, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 1
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &1194932847
|
||||
Transform:
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 2877268334151132603, guid: 26ca41ee88b1fac4899b4fe28c9e4d9f,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Server Camera
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2877268334151132600, guid: 26ca41ee88b1fac4899b4fe28c9e4d9f,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2877268334151132600, guid: 26ca41ee88b1fac4899b4fe28c9e4d9f,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2877268334151132600, guid: 26ca41ee88b1fac4899b4fe28c9e4d9f,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -10
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2877268334151132600, guid: 26ca41ee88b1fac4899b4fe28c9e4d9f,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2877268334151132600, guid: 26ca41ee88b1fac4899b4fe28c9e4d9f,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2877268334151132600, guid: 26ca41ee88b1fac4899b4fe28c9e4d9f,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2877268334151132600, guid: 26ca41ee88b1fac4899b4fe28c9e4d9f,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2877268334151132600, guid: 26ca41ee88b1fac4899b4fe28c9e4d9f,
|
||||
type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2877268334151132600, guid: 26ca41ee88b1fac4899b4fe28c9e4d9f,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2877268334151132600, guid: 26ca41ee88b1fac4899b4fe28c9e4d9f,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2877268334151132600, guid: 26ca41ee88b1fac4899b4fe28c9e4d9f,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 26ca41ee88b1fac4899b4fe28c9e4d9f, type: 3}
|
||||
--- !u!1001 &4072765320281997431
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1194932844}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4072765319379817587, guid: 9f4f046852b203f4a9c03eae33ac02b6,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Server Main Controller
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4072765319379817585, guid: 9f4f046852b203f4a9c03eae33ac02b6,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4072765319379817585, guid: 9f4f046852b203f4a9c03eae33ac02b6,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4072765319379817585, guid: 9f4f046852b203f4a9c03eae33ac02b6,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4072765319379817585, guid: 9f4f046852b203f4a9c03eae33ac02b6,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4072765319379817585, guid: 9f4f046852b203f4a9c03eae33ac02b6,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4072765319379817585, guid: 9f4f046852b203f4a9c03eae33ac02b6,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4072765319379817585, guid: 9f4f046852b203f4a9c03eae33ac02b6,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4072765319379817585, guid: 9f4f046852b203f4a9c03eae33ac02b6,
|
||||
type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4072765319379817585, guid: 9f4f046852b203f4a9c03eae33ac02b6,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4072765319379817585, guid: 9f4f046852b203f4a9c03eae33ac02b6,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4072765319379817585, guid: 9f4f046852b203f4a9c03eae33ac02b6,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 9f4f046852b203f4a9c03eae33ac02b6, type: 3}
|
||||
|
|
Loading…
Reference in a new issue