public static UIMonumentObserver InitializeMonumentObserverScript()
    {
        UIMonumentObserver ub = Instantiate(Resources.Load <GameObject>("UIPrefs/monumentObserver"), mycanvas.rightPanel.transform).GetComponent <UIMonumentObserver>();

        Monument.SetObserver(ub);
        return(ub);
    }
Esempio n. 2
0
    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);
    }