コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     //display score after the game ends
     bladeScript    = GameObject.FindGameObjectWithTag("Blade").GetComponent <Blade>();
     scoreText.text = bladeScript.getScore().ToString();
 }