private void OnTriggerEnter(Collider other) { //Debug.Log("Collided with: " + other.transform.name); controller.AllowJumping(); if (other.gameObject.CompareTag("Platform")) { AttachPlayerToObject(other.transform); } else { DeattachPlayerFromObject(); } }