Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
    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));
    }
Ejemplo n.º 4
0
 protected override void ExtendedStart()
 {
     conversations = GetComponent <NPCConversations>();
 }
Ejemplo n.º 5
0
 public NPC(NPCConversations c)
 {
     this.conversations = c;
 }
Ejemplo n.º 6
0
 public StatefulNPC(NPCConversations c) : base(c)
 {
     this.conversations = c;
 }