/* 関数の定義 */ /*------------------------------------ * Start * * summary:初期化 * param :なし(void) * return :なし(void) * ------------------------------------*/ void Start() { /* トータルスコア取得 */ PlayManager pm = GameObject.FindGameObjectWithTag("PlayManager").GetComponent <PlayManager>(); int total_score = pm.GetTotalScore(); Text text = GetComponent <Text>(); text.text = total_score.ToString(); }