protected override void ExtendedStart() { conversations = GetComponent <NPCConversations>(); persistence = GetComponent <PersistentNPC>(); // narsty hack to not display the prompt for multi-box NPC signs if (generateMapIcon && !name.ToLower().Contains("sign")) { SpawnMapIcon(); } }
protected override void ExtendedStart() { conversations = GetComponent <NPCConversations>(); persistence = GetComponent <PersistentNPC>(); // narsty hack to not display the prompt for multi-box NPC signs if (name.ToLower().Contains("sign")) { Instantiate(Resources.Load("NPCIcon"), transform.position, Quaternion.identity, this.transform); } }
static NPC MakeItemPickupDialogue(InventoryItem item) { NPCConversations conversations = new NPCConversations(); DialogueLine line = new DialogueLine(); line.lineText = "You got the <color=aqua>" + item.itemName + "</color>."; line.speakerImage = item.detailedIcon; line.speakerName = ""; //this was never meant to happen conversations.conversations = new List <Conversation>(); conversations.conversations.Add(new Conversation(line)); return(new NPC(conversations)); }
protected override void ExtendedStart() { conversations = GetComponent <NPCConversations>(); }
public NPC(NPCConversations c) { this.conversations = c; }
public StatefulNPC(NPCConversations c) : base(c) { this.conversations = c; }