public void Startup() { Debug.Log("Pause Menu Manager starting..."); hudCanvas = GameObject.FindGameObjectWithTag("PlayerHud").GetComponent <HudCanvas>(); status = ManagerStatus.Started; }
// Use this for initialization void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); }
private void OnEnable() { _hudCanvas = FindObjectOfType <HudCanvas>(); }