Constructos

Hey there, I would like to ask if it wouldn’t be more convenient to create a base constructor so every time we create a DialogueNode we won’t have to set its uniqueID explicitly. Setting it in Awake and CreateNode does feel a little dirty.

Something like:

public DialogueNode()
        {
            uniqueID = System.Guid.NewGuid().ToString();
        }

It shouldn’t break anything I hope.

1 Like

Actually, that should work just fine.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms