void Start() { this.gameObject.GetComponent <Image>().enabled = false; isActive = false; isTyping = false; dialogue = ""; characterName = ""; day = ""; playerTalking = false; parser = GameObject.FindObjectOfType <DialogueParser>(); npc = GameObject.Find("NPC").GetComponent <NPCscript>(); lineNum = 0; // menu = GetComponent<MenuManager>(); anim.GetComponent <Animator>(); //aud.GetComponent<AudioSource>(); }
public EmotionUnit(GameObject NPCobj, PlayerMvm player) { npc = NPCobj; npcScript = npc.GetComponent <NPCscript>(); leader = player; }
// Use this for initialization void Start() { npc = GameObject.Find("NPC").GetComponent <NPCscript>(); }
public void RegisterNpc(NPCType title, NPCscript npc) { npcs.Add(title, npc); }