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