private Sprite DialogLineAvatarToSprite(DialogLineAvatar dialogLineAvatar) { switch (dialogLineAvatar) { case DialogLineAvatar.None: return(null); case DialogLineAvatar.Arthur: return(Resources.Load <Sprite>("Avatar Arthur")); case DialogLineAvatar.Lancelot: return(Resources.Load <Sprite>("Avatar Lancelot")); case DialogLineAvatar.Ghost: return(Resources.Load <Sprite>("Avatar Ghost")); } throw new Exception("Please handle new DialogLineAvatar"); }
public IEnumerator Show(DialogLineAvatar dialogLineAvatar, string name, string message) { return(Show(new DialogLine(dialogLineAvatar, name, message))); }
public DialogLine(DialogLineAvatar avatar, string name, string message) { Avatar = avatar; Name = name; Message = message; }
public DialogLine(string name, string message) { Avatar = DialogLineAvatar.None; Name = name; Message = message; }