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); }