private void Awake() { hud = GameObject.FindObjectOfType <IngameHUD>(); if (hud == null) { Debug.LogError("IngameHUD not found in the scene for the GameController"); } cameraHandler = GameObject.FindObjectOfType <CameraHandler>(); if (cameraHandler == null) { Debug.LogError("CameraHandler not found in the scene for the GameController"); } }
protected override void OnCreate() { m_Hud = Resources.Load <IngameHUD>("Prefabs/CharacterHUD"); m_NamePlate = Resources.Load <NamePlate>("Prefabs/NamePlate"); }