public void generatePopUp(int n) { pointText.text = n.ToString(); pointText.transform.position = crossAir.getCursorPos(); popUp.GetComponent <Animator>().SetTrigger("GO"); uiManager.addPoints(n); }
//popUpPlay public void generatePopUp(int n) { //文字を変える pointText.text = n.ToString(); //CrossAirのところへ移動 pointText.transform.position = crossAir.getCursorPos(); //アニメーションPlay popUp.GetComponent <Animator>().SetTrigger("GO"); //スコアアップ uiManager.addPoints(n); }