private void Start() { torchManager = GameObject.FindGameObjectWithTag("TorchManager").GetComponent <TorchManager>(); isLit = false; playerNearby = false; lightingTime = 2f; }
private void Awake() { if (instance != null) { Destroy(gameObject); } else { instance = this; } }