// Start is called before the first frame update void Start() { textMesh = GetComponent <TextMeshProUGUI>(); manager = ActivateAndDisableOnAllHotspotsActivatedManager.Instance; if (manager) { _remainingHotspots = manager.RemainingHotspots; } }
// Start is called before the first frame update void Start() { manager = ActivateAndDisableOnAllHotspotsActivatedManager.Instance; if (manager == null) { Debug.LogError("No ActivateAndDisableOnAllHotspotsActivatedManager in Scene."); } else { manager.AddHotspot(); } }
private void OnDisable() => Instance = null;
private void OnEnable() => Instance = this;