일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- Artificial Intelligence
- 빅 데이터
- 확률
- c++
- 몽고디비
- 김양재 목사님
- Deep learning
- 딥러닝
- 우리들교회
- 빅 데이타
- 빅데이터
- node.js
- nodeJS
- WebGL
- Machine Learning
- probability
- data science
- 주일설교
- 김양재
- Statistics
- 빅데이타
- No SQL
- 통계
- openCV
- R
- 인공지능
- Big Data
- 데이터 과학
- MongoDB
- 김양재 목사
- Today
- Total
Scientific Computing & Data Science
Script for Network Instantiate(JS) 본문
public var playerPrefab : Transform;
function OnServerInitialized(){
Spawnplayer();
}
function OnConnectedToServer(){
Spawnplayer();
}
function Spawnplayer(){
var myNewTrans : Transform = Network.Instantiate(playerPrefab, transform.position, transform.rotation, 0) as Transform;
}
function OnPlayerDisconnected(player: NetworkPlayer) {
Debug.Log("Clean up after player " + player);
Network.RemoveRPCs(player);
Network.DestroyPlayerObjects(player);
}
function OnDisconnectedFromServer(info : NetworkDisconnection) {
Debug.Log("Clean up a bit after server quit");
Network.RemoveRPCs(Network.player);
Network.DestroyPlayerObjects(Network.player);
Application.LoadLevel(Application.loadedLevel);
}
'CG & Video Games > Unity 3D' 카테고리의 다른 글
Fetching IP Address in C# (0) | 2013.05.26 |
---|---|
Sending Commands Using RPC (0) | 2013.05.26 |
Script for Touch & Drag an Object (0) | 2013.05.26 |
Dynamic Images (0) | 2013.05.26 |
VertextLit Shader (0) | 2013.05.26 |