protected override void Construct(string nodeTitle, Vector2 nodePos, string nodeTextArea, Actor nodeActor) { name = nodeTitle; position.position = nodePos; textArea = nodeTextArea; actor = nodeActor; nodules = NoduleDatabase.CreateNew(this); options = OptionDatabase.CreateNew(this); DialogueEditorGUI.Cache.SaveNewObject(this); }
public override void Init() { base.Init(); if (!options) { Debug.LogError(""); options = OptionDatabase.CreateNew(this); } options.Init(); }