Привет. Помогите пожалуйста решить проблему. По какой то причине в инспекторе не отображаются бубличные переменные именно это скрипта
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Door : MonoBehaviour
{
public bool isOpen = false;
public Transform door;
public Sprite mid;
public Sprite top;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void Unlock()
{
isOpen = true;
GetComponent<SpriteRenderer>().sprite = mid;
transform.GetChild(0).GetComponent<SpriteRenderer>().sprite = top;
}
}