void Update() { int score = ScoreMng.GetScore(); if (score >= 1000) { textResultScore.text = "Score:" + score + "えん"; } else if (score >= 100) { textResultScore.text = "Score:" + " " + score + "えん"; } else if (score >= 10) { textResultScore.text = "Score:" + " " + score + "えん"; } else if (score >= 0) { textResultScore.text = "Score:" + " " + score + "えん"; } else if (score >= -90) { textResultScore.text = "Score:" + " " + score + "えん"; } else { textResultScore.text = "Score:" + score + "えん"; } }
// Start is called before the first frame update void Start() { effectObj = GameObject.Find("Effect"); effectObj.transform.GetChild(0).transform.gameObject.SetActive(false); score = GameObject.Find("ScoreMng").GetComponent <ScoreMng>(); }
void Start() { score = ScoreMng.GetScore(); evaluation = this.GetComponent <Text>(); }
void Start() { audience = transform.parent.GetComponent <VisitorCon>(); score = GameObject.Find("ScoreMng").GetComponent <ScoreMng>(); seSounds = GameObject.FindGameObjectWithTag("SEMng").GetComponents <AudioSource>(); }