private void OnTriggerEnter(Collider other) { //Debug.Log("SackVehaviourScript; OnTriggerEnter"); if (other.gameObject.tag == "Notes") { caughtTrash.Add(other.gameObject.name); // 袋でキャッチしたゴミノーツの名前を追加していく Destroy(Instantiate(particle, new Vector3(other.transform.position.x, other.transform.position.y), Quaternion.identity), 2.0f); // キャッチした時のパーティクルをキャッチした位置で生成して2秒後に消滅させる Destroy(other.gameObject); // キャッチしたゴミオブジェクトを消す pickUpSE.PlayOneShot(pickUpSE.clip); comboTextScript.IncrementCombo(); } }