Hello
I am having trouble with a bool not activating. the print works but unity completely ignores the bool toggle. could someone please help me understand why.
thanks
using UnityEngine;
using System.Collections;
public class CollisionManager : MonoBehaviour
{
private string Room;
public bool Active = false;
public void OnTriggerStay(Collider onStay)
{
InterfaceManager interfaceManager = GetComponent<InterfaceManager>();
Room = onStay.tag;
if(Room == "Storage")
{
Active = true; >>>> this is completely ignored and does not toggle to true
print(Room); >>>> this prints the current rooms tag
}
}
}