Exemple #1
0
 private void OnCollisionEnter2D(Collision2D col)
 {
     if (!col.gameObject.CompareTag(Constants.PLAYER))
     {
         return;
     }
     GetComponent <Rigidbody2D>().mass = 1000.0f;
     platformerController.DisableMovement();
     platformerController.WalkToPosition(playerTarget);
 }