예제 #1
0
    private void InitializeHud()
    {
        InGameSceneMain inGameSceneMain = SystemManager.Instance.GetCurrentSceneMain <InGameSceneMain>();
        GameObject      go         = Resources.Load <GameObject>(playerHudPath);
        GameObject      goInstance = Instantiate(go, inGameSceneMain.DamageManager.CanvasTransform);
        PlayerHud       playerHud  = goInstance.GetComponent <PlayerHud>();

        playerHud.Initialize(this);
    }