using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class gameScript : MonoBehaviour {
public GameObject playerInfoScreen;
// Use this for initialization
void Start ()
{
playerInfoScreen = playerInfoScreen.GetComponent<GameObject> ();
}
public void infoEnable()
{
playerInfoScreen.SetActive = true;
}
public void infoDisable()
{
playerInfoScreen.SetActive = false;
}
}
I get this error : The left-hand side of an assignment must be a variable, a property or an indexer
already tried everything, searched forum, google and tried posting here.
Any ideas how to fix ? I am newbie in Unity