public RagnarokUserMod() { try { logger = RagnarokLogger.Instance; logger.Info("Ragnarok created"); ModConfig.Instance.Logger = logger; MigrateOldSettings(); OptionsPanelManager = new OptionsPanelManager(logger); } catch (Exception ex) { logger.LogException(ex); throw; } }
void Start() { //import of other gameobjects ManagerObject = GameObject.Find("Manager"); manager = ManagerObject.GetComponent <Manager>(); textLines = manager.dialogueLines; OPM = GameObject.Find("Options Panel Manager"); opm = OPM.GetComponent <OptionsPanelManager>(); isActive = false; endAtLine = textLines.Count - 1; if (isActive) { EnableTextBox(); } else { DisableTextBox(); } }