Question by
Michael12013 · Feb 13, 2016 at 12:51 PM ·
error3dscript.edit
Im getting this error, CS8025 Parsing Error.
using UnityEngine;
using System.Collections;
using UnityEngine.Networking;
public class Player_NetworkSetup : NetworkBehaviour {
[SerializeField] Camera FPSCharacterCam;
[SerializeField AudioListener audioLister;
//Use this for Init
void start()
{
if (isLocalPlayer)
{
GameObject.Find("Scene Camera").SetActive(false);
GetComponent<CharacterController>().enabled = true;
GetComponent<UnityStandardAssets.Characters.FirstPerson.FirstPersonController>.enabled = true;
FPSCharacterCam.enabled = true;
AudioListener.enabled = true;
}
}
}
I cant figure out whats wrong with the script please help. :(
Comment
Answer by Michael12013 · Feb 13, 2016 at 07:50 PM
Nevermind, I needed a ] after the second SerializeField, Not im getting more errors but I beleive I can work through them. :)
Your answer
Follow this Question
Related Questions
Respawn Script Is Not Functioning 0 Answers
NullReferenceException: Object reference not set to an instance of an object error? 0 Answers
Hiding helper geometry during runtime 4 Answers
cannot convert from 'Unity.Entities.Entity' to 'Unity.Entities.EntityQuery' 0 Answers
Can't add Orbital script - "The script needs to derive from MonoBehaviour!" 0 Answers