Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- public class Conversation : MonoBehaviour
- {
- [System.Serializable]
- public class Block
- {
- public Block()
- {
- isOpen = true;
- name = "";
- dialog = "";
- branches = new List<Branch>();
- }
- public void AddNewBranch()
- {
- branches.Add(new Branch());
- }
- public void RemoveBranch(Branch branch)
- {
- branches.Remove(branch);
- }
- public string name;
- public string dialog;
- public int dispositionChange;
- public bool isOpen;
- public List<Branch> branches;
- }
- [System.Serializable]
- public class Branch
- {
- public Branch()
- {
- dialog = "";
- gotoBlock = "";
- }
- public string dialog;
- public string gotoBlock;
- }
- public List<Block> blocks;
- public void AddNewBlock()
- {
- blocks.Add(new Block());
- }
- public void RemoveBlock(Block block)
- {
- blocks.Remove(block);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement