public void makeNPC() { current = Instantiate(npc); current.GetComponentInChildren <Icon> ().GetComponent <Image> ().sprite = npcSprite; current.GetComponentInChildren <Name> ().GetComponent <Text> ().text = npcName; }
public void makePlayer() { current = Instantiate(player); current.GetComponentInChildren <Icon> ().GetComponent <Image> ().sprite = playerSprite; current.GetComponentInChildren <Name> ().GetComponent <Text> ().text = playersName; }
public void SetUp() { UiStatus = GameObject.Find("StatusCanvas").GetComponent <UI_Status>(); TalkCanvas = new TalkCanvas(); Playerp = GameObject.FindGameObjectWithTag("Playerp").GetComponent <Playerp>(); }