コード例 #1
0
 private void OnTriggerEnter2D(Collider2D c)
 {
     if (c.gameObject.layer == 0 || c.gameObject.layer == 11)
     {
         _spawner.ReturnPoint(this);
     }
     if (c.gameObject.layer == 0)
     {
         _bonus.Bonus(_hero);
     }
 }