示例#1
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     if (collision.gameObject.tag == "Boulder")
     {
         bScript.StartCoroutine(bScript.RespawnTimer());
         Instantiate(explosionPrefab, this.transform.position, Quaternion.identity);
         Destroy(this.gameObject);
     }
 }