Пример #1
0
    public void Startup()
    {
        Debug.Log("Pause Menu Manager starting...");

        hudCanvas = GameObject.FindGameObjectWithTag("PlayerHud").GetComponent <HudCanvas>();

        status = ManagerStatus.Started;
    }
Пример #2
0
    // Use this for initialization
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);
    }
Пример #3
0
 private void OnEnable()
 {
     _hudCanvas = FindObjectOfType <HudCanvas>();
 }