public static UIMonumentObserver InitializeMonumentObserverScript() { UIMonumentObserver ub = Instantiate(Resources.Load <GameObject>("UIPrefs/monumentObserver"), mycanvas.rightPanel.transform).GetComponent <UIMonumentObserver>(); Monument.SetObserver(ub); return(ub); }
public static UIMonumentObserver InitializeMonumentObserverScript() { UIMonumentObserver ub = Instantiate(Resources.Load <GameObject>("UIPrefs/monumentObserver"), UIController.current.rightPanel.transform).GetComponent <UIMonumentObserver>(); Monument.SetObserver(ub); ub.LocalizeTitles(); return(ub); }