Beispiel #1
0
        // Store new dialogue options
        public static void AddDialogueOption(MessageOption option)
        {
            string path = Application.persistentDataPath + "/Resources/ChatApp/Options/" + option.chat.name;

            if (!System.IO.Directory.Exists(path))
            {
                System.IO.Directory.CreateDirectory(path);
            }
            int count = System.IO.Directory.GetFiles(path).Length;

            SOSaver.Save(path + "/ " + option.chat.name + "_" + count + ".dat", option);
        }
Beispiel #2
0
 public void Initialise(MessageOption option)
 {
     id            = option.id;
     textMesh.text = option.message;
     chat          = option.chat;
 }