Esempio n. 1
0
 void OnTriggerEnter2D(Collider2D col)
 {
     if (col.gameObject.name == Player)
     {   //タグのついたオブジェクトと衝突時
         Debug.Log(Player);
         //    Destroy(this.gameObject);
         Destroy(gameObject, .5f);
         goal_script.SetPlace();
         score_script.UpScore();
         count_script.CountReset();
     }
 }