I’m making a simple interaction system based off this tutorial but when I make the script and check my project, I don’t have any variables even if I serialize everything. I know everything is correct since it was working until I booted it up again yesterday and now the variables are gone. Help? I’ve tried every fix in the book.
It should look like the first dropdown but looks like the second. I beg for help
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Keypad : Interactable
{
[SerializeField]
private GameObject door;
private bool doorOpen;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
protected override void Interact()
{
doorOpen = !doorOpen;
door.GetComponent<Animator>().SetBool("IsOpen",doorOpen);
}
}