コード例 #1
0
ファイル: Item.cs プロジェクト: Mirania/pokemonUnity
 public void Collect(PlayerMove player)
 {
     audioSource.Play();
     this.player = player;
     chatbox.Show();
     chatbox.ShowTextSilent("You got a <color=#0066cc>" + TypeToString() + "</color>!");
     //add item to bag here
     isInteracting = true;
 }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     chatbox = GameObject.Find("Chatbox").GetComponent <Chatbox>();
     chatbox.Show();
     chatbox.ShowTextSilent("Which Pokemon will you choose?");
 }