Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using UnityEngine.Networking;
- public class PlayerSetup2 : NetworkBehaviour {
- public Transform client;
- public Transform me;
- void Start ()
- {
- if (isLocalPlayer) {
- client.gameObject.SetActive (false);
- me.gameObject.SetActive (true);
- } else
- {
- client.gameObject.SetActive (true);
- me.gameObject.SetActive (false);
- }
- }
- }
Add Comment
Please, Sign In to add comment