Hello, i’m making a Multi-player game using Photon Networking. I am getting an error that for some reason I cant figure out: The name `someVariable’ does not exist in the current context. Here is the script I am using:
using UnityEngine;
using System.Collections;
public class SpawnColors : MonoBehaviour {
void Start () {
someVariable = gameObject.GetComponent<PhotonView>();
if(someVariable.isMine()) {
renderer.enabled = true;
}
}
}
Thanks for helping. I don’t know why this is happening and I cant figure it out.