Пример #1
0
 // Use this for initialization
 void Start()
 {
     if (bm == null)
     {
         bm = Babies.babyConvoDict [convo];
     }
     playersTurn = !bm.playerFirst;
     if (bm.playerFirst)
     {
         makePlayer();
     }
     else
     {
         makeNPC();
     }
     current.GetComponentInChildren <Name> ().GetComponent <Text> ().text = bm.lines [c];
 }
Пример #2
0
 public void makePlayer()
 {
     current = Instantiate(player);
     current.GetComponentInChildren <Icon> ().GetComponent <Image> ().sprite = playerSprite;
     current.GetComponentInChildren <Name> ().GetComponent <Text> ().text    = playersName;
 }
Пример #3
0
 public void makeNPC()
 {
     current = Instantiate(npc);
     current.GetComponentInChildren <Icon> ().GetComponent <Image> ().sprite = npcSprite;
     current.GetComponentInChildren <Name> ().GetComponent <Text> ().text    = npcName;
 }