public static void FinishConversation() { hasActiveConversation = false; current_conversation = null; if (OnFinish != null) { OnFinish(); } }
public static void StartConversation(DS_Conversation conversation) { if (hasActiveConversation) { return; } hasActiveConversation = true; current_conversation = conversation; current_dialogue = 0; }
public static void Open(DS_Conversation conversation) { if (conversation == null) { return; } Conversation = conversation; Active = true; AddCharacterWindow window = ScriptableObject.CreateInstance <AddCharacterWindow>(); Vector2 windowSize = new Vector2(windowwidth, window_height); window.minSize = windowSize; window.maxSize = windowSize; PositionWindow(window); window.ShowPopup(); }
private void Setvariables(SerializedObject conversation) { ScriptableConversation = conversation; ClassConversation = (DS_Conversation)ScriptableConversation.targetObject; node_sequence = ScriptableConversation.FindProperty("node_sequence"); }