I_Jemin

Init

This diff is collapsed. Click to expand it.
1 +fileFormatVersion: 2
2 +guid: 8ff09f28164505448a8d64b291c5ffc6
3 +timeCreated: 1508483039
4 +licenseType: Pro
5 +DefaultImporter:
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
This diff is collapsed. Click to expand it.
1 +fileFormatVersion: 2
2 +guid: 66c04dfe1c89f154fb3109ab17cc5201
3 +timeCreated: 1508483039
4 +licenseType: Pro
5 +DefaultImporter:
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +using UnityEngine;
2 +using System.Net;
3 +using System.Net.Sockets;
4 +
5 +public class SocketSampleTCP : MonoBehaviour
6 +{
7 + // 상대방 기계 주소
8 + private string m_address = "";
9 +
10 + // 그 주소안에 상세 번지수
11 + private int m_port = 50765;
12 +
13 + // 소켓은 소프트웨어 적으로 존재하는 네트워크 입구
14 + // 인사를 위한 늘 열려 있는 입구
15 + private Socket m_listener;
16 +
17 + // 손님을 받은 다음 실제로 데이터 교환을 위해 쓸 소켓
18 + private Socket m_dataSocket;
19 +
20 + // 현재 네트워크 상태
21 + private enum State
22 + {
23 + Idle, // 네트워크 자체가 아직 실행 안됨
24 + Listen, // 서버가 손님을 기다리는 중
25 + AcceptClient, // 손님이 서버에 왔음
26 + ServerCommunication, // 서버가 클라이언트랑 통신중
27 + StopListen, // 서버가 손님을 더이상 안받음
28 + ClientCommunication, // 클라이언트가 서버랑 통신중
29 + EndCommunication, // 통신을 마감하고 종료
30 + }
31 +
32 + private State m_state = State.Idle;
33 +
34 + private void Start()
35 + {
36 + // 나 자신
37 + m_address = "127.0.0.1";
38 + }
39 +
40 + private void Update()
41 + {
42 + switch (m_state)
43 + {
44 + case State.ClientCommunication:
45 + ClientProcess();
46 + break;
47 +
48 + case State.Listen:
49 + ServerStartListen();
50 + break;
51 +
52 + case State.AcceptClient:
53 + AcceptClient();
54 + break;
55 +
56 + case State.ServerCommunication:
57 + ServerCommunication();
58 + break;
59 +
60 + case State.StopListen:
61 + StopListen();
62 + break;
63 +
64 + case State.EndCommunication:
65 + break;
66 +
67 + default:
68 + break;
69 + }
70 + }
71 +
72 + public void ChangeAddress(string newAddress)
73 + {
74 + m_address = newAddress;
75 + }
76 +
77 + // 손님이 서버로 찾아가서 메세지를 던져넣기
78 + private void ClientProcess()
79 + {
80 + Debug.Log("TCP - 클라이언트로서 서버에 연결을 시작함");
81 +
82 + m_dataSocket =
83 + new Socket(AddressFamily.InterNetwork, SocketType.Stream,
84 + ProtocolType.Tcp);
85 +
86 + m_dataSocket.NoDelay = true;
87 + m_dataSocket.SendBufferSize = 0;
88 + // 대화할 상대방을 알고 있으므로 리스너 소켓을 통하지 않아도 됨
89 + m_dataSocket.Connect(m_address, m_port);
90 +
91 + // 문장 데이터 타입 (UTF8인코딩) => 컴퓨터가 다루는 (날것) 데이터 타입
92 + byte[] buffer
93 + = System.Text.Encoding.UTF8.GetBytes("안녕? 나는 클라이언트야");
94 +
95 + m_dataSocket.Send(buffer, buffer.Length, SocketFlags.None);
96 +
97 + m_dataSocket.Shutdown(SocketShutdown.Both);
98 + m_dataSocket.Close();
99 +
100 + Debug.Log("TCP - 클라이언트 접속 종료");
101 +
102 + m_state = State.EndCommunication;
103 + }
104 +
105 + // 서버가 손님을 기다리기 시작
106 + private void ServerStartListen()
107 + {
108 + Debug.Log("TCP - 서버 리슨 시작");
109 + // 손님용 입구 소켓을 하나 찍어냄
110 + // 인터넷주소 (000.000.000.000)
111 + // TPC 프로토콜을 사용
112 + m_listener = new Socket(AddressFamily.InterNetwork,
113 + SocketType.Stream, ProtocolType.Tcp);
114 +
115 + // 소켓이 통신하려는 상대방의 끝지점이 무엇인가?
116 + // 대화하려는 주소(아이피) + 번지수(포트)
117 + m_listener.Bind(new IPEndPoint(IPAddress.Any, m_port));
118 +
119 + m_listener.Listen(1);
120 +
121 + m_state = State.AcceptClient;
122 + }
123 +
124 + // 손님을 인식하고, 인식이 됬다면 진짜 대화용 소켓을 만드는곳
125 + private void AcceptClient()
126 + {
127 + if (m_listener != null && m_listener.Poll(0, SelectMode.SelectRead))
128 + {
129 + m_dataSocket = m_listener.Accept();
130 + Debug.Log("TCP - 클라이언트가 연결되어 옴");
131 + m_state = State.ServerCommunication;
132 + }
133 + }
134 +
135 + // 실제 데이터 통신용 소켓을 사용해서 클라이언트가 주는 메세지를 받기
136 + private void ServerCommunication()
137 + {
138 + // 실제 데이터를 받아올 버퍼(중간 창고)
139 + byte[] buffer = new byte[1400];
140 +
141 + // 버퍼에 받아온 데이터를 옮겨 넣기
142 + // 버퍼를 얼마까지 채워서 받아왔는지 recvSize 에 저장
143 + int recvSize = m_dataSocket.Receive(buffer,
144 + buffer.Length, SocketFlags.None);
145 +
146 + if (recvSize > 0)
147 + {
148 + // 바이트 데이터 (날것 데이터)를 변환해서 원래 문장으로
149 + string message = System.Text.Encoding.UTF8.GetString(buffer);
150 + Debug.Log(message);
151 +
152 + m_state = State.StopListen;
153 + }
154 + }
155 +
156 + // 더이상의 손님 거절한다
157 + private void StopListen()
158 + {
159 + if (m_listener != null)
160 + {
161 + // 장사끝
162 + m_listener.Close();
163 + m_listener = null;
164 + }
165 + m_state = State.EndCommunication;
166 + }
167 +
168 + public void OnServerButtonClick()
169 + {
170 + m_state = State.Listen;
171 + }
172 +
173 + public void OnClientButtonClick()
174 + {
175 + m_state = State.ClientCommunication;
176 + }
177 +}
...\ No newline at end of file ...\ No newline at end of file
1 +fileFormatVersion: 2
2 +guid: c9bfac8ada1cc6145b6c2b4d350a4195
3 +timeCreated: 1508477423
4 +licenseType: Pro
5 +MonoImporter:
6 + serializedVersion: 2
7 + defaultReferences: []
8 + executionOrder: 0
9 + icon: {instanceID: 0}
10 + userData:
11 + assetBundleName:
12 + assetBundleVariant:
1 +using UnityEngine;
2 +using System.Net;
3 +using System.Net.Sockets;
4 +
5 +// UDP는 TCP와 달리 서버와 클라이언트의 구별도 없고
6 +// 서버가 대기할 필요도 없고
7 +// 받는 주소와 포트를 지정해 보내기만 하면됨
8 +public class SocketSampleUDP : MonoBehaviour
9 +{
10 + // 접속 주소 IPv4
11 + private string m_address = "127.0.0.1";
12 +
13 + private int m_port = 54329;
14 +
15 + private Socket m_socket = null;
16 +
17 + private enum State
18 + {
19 + Idle, // 통신을 시작 안함
20 + CreateListener, // 데이터를 받기 위한 소켓 생성
21 + Receving, // 소켓에서 메세지를 꺼내는 중
22 + CloseListener, // 데이터를 받는 소켓을 닫기
23 + Sending, // 소켓으로 메세지를 보내는 중
24 + End // 네트워크 마감
25 + }
26 +
27 + private State m_state = State.Idle;
28 +
29 + // 데이터를 받는 소켓 생성
30 + private void CreateListener()
31 + {
32 + Debug.Log("UDP - 소켓 연결 시작");
33 +
34 + m_socket =
35 + new Socket(AddressFamily.InterNetwork, SocketType.Dgram,
36 + ProtocolType.Udp);
37 +
38 + m_socket.Bind(new IPEndPoint(IPAddress.Any, m_port));
39 + m_state = State.Receving;
40 + }
41 +
42 + private void Receving()
43 + {
44 + byte[] buffer = new byte[1400];
45 + IPEndPoint sender = new IPEndPoint(IPAddress.Any, 0);
46 + EndPoint remoteSender = (EndPoint)sender;
47 +
48 + if (m_socket.Poll(0, SelectMode.SelectRead))
49 + {
50 + int recvSize
51 + = m_socket.
52 + ReceiveFrom(buffer, SocketFlags.None, ref remoteSender);
53 +
54 + if (recvSize > 0)
55 + {
56 + string message
57 + = System.Text.Encoding.UTF8.GetString(buffer);
58 + Debug.Log(message);
59 + m_state = State.CloseListener;
60 + }
61 + }
62 + }
63 +
64 + // 대기 종료
65 + private void CloseListener()
66 + {
67 + if (m_socket != null)
68 + {
69 + m_socket.Close();
70 + m_socket = null;
71 + }
72 + m_state = State.End;
73 + Debug.Log("UDP - 통신 끝");
74 + }
75 +
76 + private void Sending()
77 + {
78 + Debug.Log("UDP - 통신 시작");
79 + m_socket =
80 + new Socket(AddressFamily.InterNetwork, SocketType.Dgram,
81 + ProtocolType.Udp);
82 +
83 + byte[] buffer =
84 + System.Text.Encoding.UTF8.GetBytes("This is Client! from UDP");
85 +
86 + IPEndPoint endPoint = new IPEndPoint(IPAddress.Parse(m_address),
87 + m_port);
88 +
89 + m_socket.SendTo(buffer, buffer.Length, SocketFlags.None, endPoint);
90 +
91 + m_socket.Shutdown(SocketShutdown.Both);
92 + m_socket.Close();
93 +
94 + m_state = State.End;
95 +
96 + Debug.Log("UDP - 통신 끝");
97 + }
98 +
99 + public void OnServerButtonClicked()
100 + {
101 + m_state = State.CreateListener;
102 + }
103 +
104 + public void OnClientButtonClicked()
105 + {
106 + m_state = State.Sending;
107 + }
108 +
109 + public void ChangeIPAddress(string ipAddress)
110 + {
111 + m_address = ipAddress;
112 + }
113 +
114 + private void Update()
115 + {
116 + switch (m_state)
117 + {
118 + case State.Sending:
119 + Sending();
120 + break;
121 +
122 + case State.CreateListener:
123 + CreateListener();
124 + break;
125 +
126 + case State.Receving:
127 + Receving();
128 + break;
129 +
130 + case State.CloseListener:
131 + CloseListener();
132 + break;
133 +
134 + case State.End:
135 + break;
136 +
137 + case State.Idle:
138 + break;
139 +
140 + default:
141 + break;
142 + }
143 + }
144 +}
...\ No newline at end of file ...\ No newline at end of file
1 +fileFormatVersion: 2
2 +guid: 3ea3e29b68dfae14bac0b9b1dc7b2cd4
3 +timeCreated: 1508485098
4 +licenseType: Pro
5 +MonoImporter:
6 + serializedVersion: 2
7 + defaultReferences: []
8 + executionOrder: 0
9 + icon: {instanceID: 0}
10 + userData:
11 + assetBundleName:
12 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!11 &1
4 +AudioManager:
5 + m_ObjectHideFlags: 0
6 + m_Volume: 1
7 + Rolloff Scale: 1
8 + Doppler Factor: 1
9 + Default Speaker Mode: 2
10 + m_SampleRate: 0
11 + m_DSPBufferSize: 0
12 + m_VirtualVoiceCount: 512
13 + m_RealVoiceCount: 32
14 + m_SpatializerPlugin:
15 + m_AmbisonicDecoderPlugin:
16 + m_DisableAudio: 0
17 + m_VirtualizeEffects: 1
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!236 &1
4 +ClusterInputManager:
5 + m_ObjectHideFlags: 0
6 + m_Inputs: []
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!55 &1
4 +PhysicsManager:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 3
7 + m_Gravity: {x: 0, y: -9.81, z: 0}
8 + m_DefaultMaterial: {fileID: 0}
9 + m_BounceThreshold: 2
10 + m_SleepThreshold: 0.005
11 + m_DefaultContactOffset: 0.01
12 + m_DefaultSolverIterations: 6
13 + m_DefaultSolverVelocityIterations: 1
14 + m_QueriesHitBackfaces: 0
15 + m_QueriesHitTriggers: 1
16 + m_EnableAdaptiveForce: 0
17 + m_EnablePCM: 1
18 + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
19 + m_AutoSimulation: 1
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!1045 &1
4 +EditorBuildSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 2
7 + m_Scenes:
8 + - enabled: 0
9 + path: Assets/Main UDP.unity
10 + guid: 66c04dfe1c89f154fb3109ab17cc5201
11 + - enabled: 1
12 + path: Assets/Main TCP.unity
13 + guid: 8ff09f28164505448a8d64b291c5ffc6
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!159 &1
4 +EditorSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 4
7 + m_ExternalVersionControlSupport: Visible Meta Files
8 + m_SerializationMode: 2
9 + m_DefaultBehaviorMode: 0
10 + m_SpritePackerMode: 0
11 + m_SpritePackerPaddingPower: 1
12 + m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd
13 + m_ProjectGenerationRootNamespace:
14 + m_UserGeneratedProjectSuffix:
15 + m_CollabEditorSettings:
16 + inProgressEnabled: 1
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!30 &1
4 +GraphicsSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 12
7 + m_Deferred:
8 + m_Mode: 1
9 + m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0}
10 + m_DeferredReflections:
11 + m_Mode: 1
12 + m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0}
13 + m_ScreenSpaceShadows:
14 + m_Mode: 1
15 + m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0}
16 + m_LegacyDeferred:
17 + m_Mode: 1
18 + m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0}
19 + m_DepthNormals:
20 + m_Mode: 1
21 + m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0}
22 + m_MotionVectors:
23 + m_Mode: 1
24 + m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0}
25 + m_LightHalo:
26 + m_Mode: 1
27 + m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0}
28 + m_LensFlare:
29 + m_Mode: 1
30 + m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0}
31 + m_AlwaysIncludedShaders:
32 + - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
33 + - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0}
34 + - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0}
35 + - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0}
36 + - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
37 + - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
38 + - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
39 + m_PreloadedShaders: []
40 + m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
41 + type: 0}
42 + m_CustomRenderPipeline: {fileID: 0}
43 + m_TransparencySortMode: 0
44 + m_TransparencySortAxis: {x: 0, y: 0, z: 1}
45 + m_DefaultRenderingPath: 1
46 + m_DefaultMobileRenderingPath: 1
47 + m_TierSettings: []
48 + m_LightmapStripping: 0
49 + m_FogStripping: 0
50 + m_InstancingStripping: 0
51 + m_LightmapKeepPlain: 1
52 + m_LightmapKeepDirCombined: 1
53 + m_LightmapKeepDynamicPlain: 1
54 + m_LightmapKeepDynamicDirCombined: 1
55 + m_LightmapKeepShadowMask: 1
56 + m_LightmapKeepSubtractive: 1
57 + m_FogKeepLinear: 1
58 + m_FogKeepExp: 1
59 + m_FogKeepExp2: 1
60 + m_AlbedoSwatchInfos: []
61 + m_LightsUseLinearIntensity: 0
62 + m_LightsUseColorTemperature: 0
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!13 &1
4 +InputManager:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 2
7 + m_Axes:
8 + - serializedVersion: 3
9 + m_Name: Horizontal
10 + descriptiveName:
11 + descriptiveNegativeName:
12 + negativeButton: left
13 + positiveButton: right
14 + altNegativeButton: a
15 + altPositiveButton: d
16 + gravity: 3
17 + dead: 0.001
18 + sensitivity: 3
19 + snap: 1
20 + invert: 0
21 + type: 0
22 + axis: 0
23 + joyNum: 0
24 + - serializedVersion: 3
25 + m_Name: Vertical
26 + descriptiveName:
27 + descriptiveNegativeName:
28 + negativeButton: down
29 + positiveButton: up
30 + altNegativeButton: s
31 + altPositiveButton: w
32 + gravity: 3
33 + dead: 0.001
34 + sensitivity: 3
35 + snap: 1
36 + invert: 0
37 + type: 0
38 + axis: 0
39 + joyNum: 0
40 + - serializedVersion: 3
41 + m_Name: Fire1
42 + descriptiveName:
43 + descriptiveNegativeName:
44 + negativeButton:
45 + positiveButton: left ctrl
46 + altNegativeButton:
47 + altPositiveButton: mouse 0
48 + gravity: 1000
49 + dead: 0.001
50 + sensitivity: 1000
51 + snap: 0
52 + invert: 0
53 + type: 0
54 + axis: 0
55 + joyNum: 0
56 + - serializedVersion: 3
57 + m_Name: Fire2
58 + descriptiveName:
59 + descriptiveNegativeName:
60 + negativeButton:
61 + positiveButton: left alt
62 + altNegativeButton:
63 + altPositiveButton: mouse 1
64 + gravity: 1000
65 + dead: 0.001
66 + sensitivity: 1000
67 + snap: 0
68 + invert: 0
69 + type: 0
70 + axis: 0
71 + joyNum: 0
72 + - serializedVersion: 3
73 + m_Name: Fire3
74 + descriptiveName:
75 + descriptiveNegativeName:
76 + negativeButton:
77 + positiveButton: left shift
78 + altNegativeButton:
79 + altPositiveButton: mouse 2
80 + gravity: 1000
81 + dead: 0.001
82 + sensitivity: 1000
83 + snap: 0
84 + invert: 0
85 + type: 0
86 + axis: 0
87 + joyNum: 0
88 + - serializedVersion: 3
89 + m_Name: Jump
90 + descriptiveName:
91 + descriptiveNegativeName:
92 + negativeButton:
93 + positiveButton: space
94 + altNegativeButton:
95 + altPositiveButton:
96 + gravity: 1000
97 + dead: 0.001
98 + sensitivity: 1000
99 + snap: 0
100 + invert: 0
101 + type: 0
102 + axis: 0
103 + joyNum: 0
104 + - serializedVersion: 3
105 + m_Name: Mouse X
106 + descriptiveName:
107 + descriptiveNegativeName:
108 + negativeButton:
109 + positiveButton:
110 + altNegativeButton:
111 + altPositiveButton:
112 + gravity: 0
113 + dead: 0
114 + sensitivity: 0.1
115 + snap: 0
116 + invert: 0
117 + type: 1
118 + axis: 0
119 + joyNum: 0
120 + - serializedVersion: 3
121 + m_Name: Mouse Y
122 + descriptiveName:
123 + descriptiveNegativeName:
124 + negativeButton:
125 + positiveButton:
126 + altNegativeButton:
127 + altPositiveButton:
128 + gravity: 0
129 + dead: 0
130 + sensitivity: 0.1
131 + snap: 0
132 + invert: 0
133 + type: 1
134 + axis: 1
135 + joyNum: 0
136 + - serializedVersion: 3
137 + m_Name: Mouse ScrollWheel
138 + descriptiveName:
139 + descriptiveNegativeName:
140 + negativeButton:
141 + positiveButton:
142 + altNegativeButton:
143 + altPositiveButton:
144 + gravity: 0
145 + dead: 0
146 + sensitivity: 0.1
147 + snap: 0
148 + invert: 0
149 + type: 1
150 + axis: 2
151 + joyNum: 0
152 + - serializedVersion: 3
153 + m_Name: Horizontal
154 + descriptiveName:
155 + descriptiveNegativeName:
156 + negativeButton:
157 + positiveButton:
158 + altNegativeButton:
159 + altPositiveButton:
160 + gravity: 0
161 + dead: 0.19
162 + sensitivity: 1
163 + snap: 0
164 + invert: 0
165 + type: 2
166 + axis: 0
167 + joyNum: 0
168 + - serializedVersion: 3
169 + m_Name: Vertical
170 + descriptiveName:
171 + descriptiveNegativeName:
172 + negativeButton:
173 + positiveButton:
174 + altNegativeButton:
175 + altPositiveButton:
176 + gravity: 0
177 + dead: 0.19
178 + sensitivity: 1
179 + snap: 0
180 + invert: 1
181 + type: 2
182 + axis: 1
183 + joyNum: 0
184 + - serializedVersion: 3
185 + m_Name: Fire1
186 + descriptiveName:
187 + descriptiveNegativeName:
188 + negativeButton:
189 + positiveButton: joystick button 0
190 + altNegativeButton:
191 + altPositiveButton:
192 + gravity: 1000
193 + dead: 0.001
194 + sensitivity: 1000
195 + snap: 0
196 + invert: 0
197 + type: 0
198 + axis: 0
199 + joyNum: 0
200 + - serializedVersion: 3
201 + m_Name: Fire2
202 + descriptiveName:
203 + descriptiveNegativeName:
204 + negativeButton:
205 + positiveButton: joystick button 1
206 + altNegativeButton:
207 + altPositiveButton:
208 + gravity: 1000
209 + dead: 0.001
210 + sensitivity: 1000
211 + snap: 0
212 + invert: 0
213 + type: 0
214 + axis: 0
215 + joyNum: 0
216 + - serializedVersion: 3
217 + m_Name: Fire3
218 + descriptiveName:
219 + descriptiveNegativeName:
220 + negativeButton:
221 + positiveButton: joystick button 2
222 + altNegativeButton:
223 + altPositiveButton:
224 + gravity: 1000
225 + dead: 0.001
226 + sensitivity: 1000
227 + snap: 0
228 + invert: 0
229 + type: 0
230 + axis: 0
231 + joyNum: 0
232 + - serializedVersion: 3
233 + m_Name: Jump
234 + descriptiveName:
235 + descriptiveNegativeName:
236 + negativeButton:
237 + positiveButton: joystick button 3
238 + altNegativeButton:
239 + altPositiveButton:
240 + gravity: 1000
241 + dead: 0.001
242 + sensitivity: 1000
243 + snap: 0
244 + invert: 0
245 + type: 0
246 + axis: 0
247 + joyNum: 0
248 + - serializedVersion: 3
249 + m_Name: Submit
250 + descriptiveName:
251 + descriptiveNegativeName:
252 + negativeButton:
253 + positiveButton: return
254 + altNegativeButton:
255 + altPositiveButton: joystick button 0
256 + gravity: 1000
257 + dead: 0.001
258 + sensitivity: 1000
259 + snap: 0
260 + invert: 0
261 + type: 0
262 + axis: 0
263 + joyNum: 0
264 + - serializedVersion: 3
265 + m_Name: Submit
266 + descriptiveName:
267 + descriptiveNegativeName:
268 + negativeButton:
269 + positiveButton: enter
270 + altNegativeButton:
271 + altPositiveButton: space
272 + gravity: 1000
273 + dead: 0.001
274 + sensitivity: 1000
275 + snap: 0
276 + invert: 0
277 + type: 0
278 + axis: 0
279 + joyNum: 0
280 + - serializedVersion: 3
281 + m_Name: Cancel
282 + descriptiveName:
283 + descriptiveNegativeName:
284 + negativeButton:
285 + positiveButton: escape
286 + altNegativeButton:
287 + altPositiveButton: joystick button 1
288 + gravity: 1000
289 + dead: 0.001
290 + sensitivity: 1000
291 + snap: 0
292 + invert: 0
293 + type: 0
294 + axis: 0
295 + joyNum: 0
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!126 &1
4 +NavMeshProjectSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 2
7 + areas:
8 + - name: Walkable
9 + cost: 1
10 + - name: Not Walkable
11 + cost: 1
12 + - name: Jump
13 + cost: 2
14 + - name:
15 + cost: 1
16 + - name:
17 + cost: 1
18 + - name:
19 + cost: 1
20 + - name:
21 + cost: 1
22 + - name:
23 + cost: 1
24 + - name:
25 + cost: 1
26 + - name:
27 + cost: 1
28 + - name:
29 + cost: 1
30 + - name:
31 + cost: 1
32 + - name:
33 + cost: 1
34 + - name:
35 + cost: 1
36 + - name:
37 + cost: 1
38 + - name:
39 + cost: 1
40 + - name:
41 + cost: 1
42 + - name:
43 + cost: 1
44 + - name:
45 + cost: 1
46 + - name:
47 + cost: 1
48 + - name:
49 + cost: 1
50 + - name:
51 + cost: 1
52 + - name:
53 + cost: 1
54 + - name:
55 + cost: 1
56 + - name:
57 + cost: 1
58 + - name:
59 + cost: 1
60 + - name:
61 + cost: 1
62 + - name:
63 + cost: 1
64 + - name:
65 + cost: 1
66 + - name:
67 + cost: 1
68 + - name:
69 + cost: 1
70 + - name:
71 + cost: 1
72 + m_LastAgentTypeID: -887442657
73 + m_Settings:
74 + - serializedVersion: 2
75 + agentTypeID: 0
76 + agentRadius: 0.5
77 + agentHeight: 2
78 + agentSlope: 45
79 + agentClimb: 0.75
80 + ledgeDropHeight: 0
81 + maxJumpAcrossDistance: 0
82 + minRegionArea: 2
83 + manualCellSize: 0
84 + cellSize: 0.16666667
85 + manualTileSize: 0
86 + tileSize: 256
87 + accuratePlacement: 0
88 + m_SettingNames:
89 + - Humanoid
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!149 &1
4 +NetworkManager:
5 + m_ObjectHideFlags: 0
6 + m_DebugLevel: 0
7 + m_Sendrate: 15
8 + m_AssetToPrefab: {}
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!19 &1
4 +Physics2DSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 3
7 + m_Gravity: {x: 0, y: -9.81}
8 + m_DefaultMaterial: {fileID: 0}
9 + m_VelocityIterations: 8
10 + m_PositionIterations: 3
11 + m_VelocityThreshold: 1
12 + m_MaxLinearCorrection: 0.2
13 + m_MaxAngularCorrection: 8
14 + m_MaxTranslationSpeed: 100
15 + m_MaxRotationSpeed: 360
16 + m_BaumgarteScale: 0.2
17 + m_BaumgarteTimeOfImpactScale: 0.75
18 + m_TimeToSleep: 0.5
19 + m_LinearSleepTolerance: 0.01
20 + m_AngularSleepTolerance: 2
21 + m_DefaultContactOffset: 0.01
22 + m_AutoSimulation: 1
23 + m_QueriesHitTriggers: 1
24 + m_QueriesStartInColliders: 1
25 + m_ChangeStopsCallbacks: 0
26 + m_CallbacksOnDisable: 1
27 + m_AlwaysShowColliders: 0
28 + m_ShowColliderSleep: 1
29 + m_ShowColliderContacts: 0
30 + m_ShowColliderAABB: 0
31 + m_ContactArrowScale: 0.2
32 + m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412}
33 + m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432}
34 + m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745}
35 + m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804}
36 + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
This diff is collapsed. Click to expand it.
1 +m_EditorVersion: 2017.1.0f3
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!47 &1
4 +QualitySettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 5
7 + m_CurrentQuality: 5
8 + m_QualitySettings:
9 + - serializedVersion: 2
10 + name: Very Low
11 + pixelLightCount: 0
12 + shadows: 0
13 + shadowResolution: 0
14 + shadowProjection: 1
15 + shadowCascades: 1
16 + shadowDistance: 15
17 + shadowNearPlaneOffset: 3
18 + shadowCascade2Split: 0.33333334
19 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
20 + shadowmaskMode: 0
21 + blendWeights: 1
22 + textureQuality: 1
23 + anisotropicTextures: 0
24 + antiAliasing: 0
25 + softParticles: 0
26 + softVegetation: 0
27 + realtimeReflectionProbes: 0
28 + billboardsFaceCameraPosition: 0
29 + vSyncCount: 0
30 + lodBias: 0.3
31 + maximumLODLevel: 0
32 + particleRaycastBudget: 4
33 + asyncUploadTimeSlice: 2
34 + asyncUploadBufferSize: 4
35 + resolutionScalingFixedDPIFactor: 1
36 + excludedTargetPlatforms: []
37 + - serializedVersion: 2
38 + name: Low
39 + pixelLightCount: 0
40 + shadows: 0
41 + shadowResolution: 0
42 + shadowProjection: 1
43 + shadowCascades: 1
44 + shadowDistance: 20
45 + shadowNearPlaneOffset: 3
46 + shadowCascade2Split: 0.33333334
47 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
48 + shadowmaskMode: 0
49 + blendWeights: 2
50 + textureQuality: 0
51 + anisotropicTextures: 0
52 + antiAliasing: 0
53 + softParticles: 0
54 + softVegetation: 0
55 + realtimeReflectionProbes: 0
56 + billboardsFaceCameraPosition: 0
57 + vSyncCount: 0
58 + lodBias: 0.4
59 + maximumLODLevel: 0
60 + particleRaycastBudget: 16
61 + asyncUploadTimeSlice: 2
62 + asyncUploadBufferSize: 4
63 + resolutionScalingFixedDPIFactor: 1
64 + excludedTargetPlatforms: []
65 + - serializedVersion: 2
66 + name: Medium
67 + pixelLightCount: 1
68 + shadows: 1
69 + shadowResolution: 0
70 + shadowProjection: 1
71 + shadowCascades: 1
72 + shadowDistance: 20
73 + shadowNearPlaneOffset: 3
74 + shadowCascade2Split: 0.33333334
75 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
76 + shadowmaskMode: 0
77 + blendWeights: 2
78 + textureQuality: 0
79 + anisotropicTextures: 1
80 + antiAliasing: 0
81 + softParticles: 0
82 + softVegetation: 0
83 + realtimeReflectionProbes: 0
84 + billboardsFaceCameraPosition: 0
85 + vSyncCount: 1
86 + lodBias: 0.7
87 + maximumLODLevel: 0
88 + particleRaycastBudget: 64
89 + asyncUploadTimeSlice: 2
90 + asyncUploadBufferSize: 4
91 + resolutionScalingFixedDPIFactor: 1
92 + excludedTargetPlatforms: []
93 + - serializedVersion: 2
94 + name: High
95 + pixelLightCount: 2
96 + shadows: 2
97 + shadowResolution: 1
98 + shadowProjection: 1
99 + shadowCascades: 2
100 + shadowDistance: 40
101 + shadowNearPlaneOffset: 3
102 + shadowCascade2Split: 0.33333334
103 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
104 + shadowmaskMode: 1
105 + blendWeights: 2
106 + textureQuality: 0
107 + anisotropicTextures: 1
108 + antiAliasing: 0
109 + softParticles: 0
110 + softVegetation: 1
111 + realtimeReflectionProbes: 1
112 + billboardsFaceCameraPosition: 1
113 + vSyncCount: 1
114 + lodBias: 1
115 + maximumLODLevel: 0
116 + particleRaycastBudget: 256
117 + asyncUploadTimeSlice: 2
118 + asyncUploadBufferSize: 4
119 + resolutionScalingFixedDPIFactor: 1
120 + excludedTargetPlatforms: []
121 + - serializedVersion: 2
122 + name: Very High
123 + pixelLightCount: 3
124 + shadows: 2
125 + shadowResolution: 2
126 + shadowProjection: 1
127 + shadowCascades: 2
128 + shadowDistance: 70
129 + shadowNearPlaneOffset: 3
130 + shadowCascade2Split: 0.33333334
131 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
132 + shadowmaskMode: 1
133 + blendWeights: 4
134 + textureQuality: 0
135 + anisotropicTextures: 2
136 + antiAliasing: 2
137 + softParticles: 1
138 + softVegetation: 1
139 + realtimeReflectionProbes: 1
140 + billboardsFaceCameraPosition: 1
141 + vSyncCount: 1
142 + lodBias: 1.5
143 + maximumLODLevel: 0
144 + particleRaycastBudget: 1024
145 + asyncUploadTimeSlice: 2
146 + asyncUploadBufferSize: 4
147 + resolutionScalingFixedDPIFactor: 1
148 + excludedTargetPlatforms: []
149 + - serializedVersion: 2
150 + name: Ultra
151 + pixelLightCount: 4
152 + shadows: 2
153 + shadowResolution: 2
154 + shadowProjection: 1
155 + shadowCascades: 4
156 + shadowDistance: 150
157 + shadowNearPlaneOffset: 3
158 + shadowCascade2Split: 0.33333334
159 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
160 + shadowmaskMode: 1
161 + blendWeights: 4
162 + textureQuality: 0
163 + anisotropicTextures: 2
164 + antiAliasing: 2
165 + softParticles: 1
166 + softVegetation: 1
167 + realtimeReflectionProbes: 1
168 + billboardsFaceCameraPosition: 1
169 + vSyncCount: 1
170 + lodBias: 2
171 + maximumLODLevel: 0
172 + particleRaycastBudget: 4096
173 + asyncUploadTimeSlice: 2
174 + asyncUploadBufferSize: 4
175 + resolutionScalingFixedDPIFactor: 1
176 + excludedTargetPlatforms: []
177 + m_PerPlatformDefaultQuality:
178 + Android: 2
179 + Nintendo 3DS: 5
180 + Nintendo Switch: 5
181 + PS4: 5
182 + PSM: 5
183 + PSP2: 2
184 + Samsung TV: 2
185 + Standalone: 5
186 + Tizen: 2
187 + Web: 5
188 + WebGL: 3
189 + WiiU: 5
190 + Windows Store Apps: 5
191 + XboxOne: 5
192 + iPhone: 2
193 + tvOS: 2
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!78 &1
4 +TagManager:
5 + serializedVersion: 2
6 + tags: []
7 + layers:
8 + - Default
9 + - TransparentFX
10 + - Ignore Raycast
11 + -
12 + - Water
13 + - UI
14 + -
15 + -
16 + -
17 + -
18 + -
19 + -
20 + -
21 + -
22 + -
23 + -
24 + -
25 + -
26 + -
27 + -
28 + -
29 + -
30 + -
31 + -
32 + -
33 + -
34 + -
35 + -
36 + -
37 + -
38 + -
39 + -
40 + m_SortingLayers:
41 + - name: Default
42 + uniqueID: 0
43 + locked: 0
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!5 &1
4 +TimeManager:
5 + m_ObjectHideFlags: 0
6 + Fixed Timestep: 0.02
7 + Maximum Allowed Timestep: 0.33333334
8 + m_TimeScale: 1
9 + Maximum Particle Timestep: 0.03
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!310 &1
4 +UnityConnectSettings:
5 + m_ObjectHideFlags: 0
6 + m_Enabled: 0
7 + m_TestMode: 0
8 + m_TestEventUrl:
9 + m_TestConfigUrl:
10 + m_TestInitMode: 0
11 + CrashReportingSettings:
12 + m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes
13 + m_Enabled: 0
14 + m_CaptureEditorExceptions: 1
15 + UnityPurchasingSettings:
16 + m_Enabled: 0
17 + m_TestMode: 0
18 + UnityAnalyticsSettings:
19 + m_Enabled: 0
20 + m_InitializeOnStartup: 1
21 + m_TestMode: 0
22 + m_TestEventUrl:
23 + m_TestConfigUrl:
24 + UnityAdsSettings:
25 + m_Enabled: 0
26 + m_InitializeOnStartup: 1
27 + m_TestMode: 0
28 + m_EnabledPlatforms: 4294967295
29 + m_IosGameId:
30 + m_AndroidGameId:
31 + m_GameIds: {}
32 + m_GameId:
33 + PerformanceReportingSettings:
34 + m_Enabled: 0