Ejemplo n.º 1
0
 protected void Awake()
 {
     try {
         this.categoryList = this.gameObject.AddComponent <PopOutElement>();
         this.categoryList.DrawCallback = this.DrawCategories;
         this.presetList = this.gameObject.AddComponent <PopOutElement>();
         this.presetList.DrawCallback    = this.DrawPresets;
         this.colorPicker                = this.gameObject.AddComponent <PopOutColorPicker>();
         this.colorPicker.DrawCallback   = this.DrawColorPicker;
         this.colorPicker.ClosedCallback = this.saveColor;
     } catch (Exception ex) {
         MyLogger.Exception(ex);
     }
 }
Ejemplo n.º 2
0
        protected void Awake()
        {
            try
            {
                Instance   = this;
                bodiesList = gameObject.AddComponent <PopOutElement>();
                bodiesList.DrawCallback = DrawBodiesList;
                Load();

                SimManager.UpdateModSettings();
                SimManager.OnReady -= GetStageInfo;
                SimManager.OnReady += GetStageInfo;
            }
            catch (Exception ex)
            {
                MyLogger.Exception(ex, "BuildAdvanced.Awake()");
            }
        }