Пример #1
0
 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>();
 }
Пример #2
0
 public EmotionUnit(GameObject NPCobj, PlayerMvm player)
 {
     npc       = NPCobj;
     npcScript = npc.GetComponent <NPCscript>();
     leader    = player;
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     npc = GameObject.Find("NPC").GetComponent <NPCscript>();
 }
 public void RegisterNpc(NPCType title, NPCscript npc)
 {
     npcs.Add(title, npc);
 }