Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using UnityEngine.Networking;
- public class PlayerAnimSetup : NetworkBehaviour {
- public GameObject CameraTr;
- void Start ()
- {
- EnablePlayer ();
- }
- public void EnablePlayer()
- {
- if(isLocalPlayer)
- {
- CameraTr.SetActive(true);
- GetComponent<PlayerHeadControl>().enabled = true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement