Пример #1
0
 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);
 }
Пример #2
0
        public override void Init()
        {
            base.Init();

            if (!options)
            {
                Debug.LogError("");
                options = OptionDatabase.CreateNew(this);
            }
            options.Init();
        }