コード例 #1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (_time == TimeChange.CurrentTime)
     {
         Rock rock = collision.gameObject.GetComponent <Rock>();
         if (rock != null)
         {
             AudioManager.instance.Play("RocaMetal");
             rock.FreeZeState();
             rockPool.Recycle(rock);
         }
     }
 }