Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch(GetMyTeamAsTeam())
- {
- case Team.blue:
- Debug.Log(gameObject.name + " blue team");
- Debug.Log("instance is null? " + (SceneSpawnPointController.instance == null));
- t = SceneSpawnPointController.instance.sceneSpawnPoints[point].scenarioPlaceholder.GetSpawnPos();
- go = Instantiate(NetworkController.instance.soldiersM[0].gameObject,t.position, t.rotation);
- if (NetworkServer.SpawnWithClientAuthority(go, connectionToClient))
- {
- if(go.GetComponent<NetworkIdentity>().connectionToClient != connectionToClient)
- {
- Debug.LogWarning("Error! Error");
- }
- RpcSetSoldier();
- go.GetComponent<Soldier>().SetMyPlayer(this);
- }
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement