コード例 #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
ファイル: EmotionUnit.cs プロジェクト: marcomoroni/ggj-2018
 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>();
 }
コード例 #4
0
 public void RegisterNpc(NPCType title, NPCscript npc)
 {
     npcs.Add(title, npc);
 }