예제 #1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag(Constants.PLAYER) || hopped)
     {
         return;
     }
     // Get player off comet
     hopped = true;
     platformerController.HopOffComet();
     platformerController.EnableMovement();
 }