using UnityEngine;
using System.Collections;
public class Fridge : MonoBehaviour {
private bool Open = false;
void Update () {
if (Input.GetMouseButtonDown(0) && Open == false)
{
animation.Play("Opening");
animation.Play("Opened");
Open == true;
}
else if ((Input.GetMouseButtonDown(0)) && Open == true )
{
animation.Play("Closing");
animation.Play("Closed");
Open == false;
}
}
}
I keep getting the error “error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement”. Now I’ve googled this error, but cannot find a solution to the true and false issue?