Пример #1
0
    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");
        }
    }
Пример #2
0
 protected override void OnCreate()
 {
     m_Hud       = Resources.Load <IngameHUD>("Prefabs/CharacterHUD");
     m_NamePlate = Resources.Load <NamePlate>("Prefabs/NamePlate");
 }