It is my solution:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// GameDev.tv Challenge Club. Got questions or want to share your nifty solution?
// Head over to - http://community.gamedev.tv
public class Bounce : MonoBehaviour
{
[SerializeField] float jumpForce = 1000f;
void OnTriggerEnter(Collider other)
{
// Challenge 1:
JumpyJumpy(other);
}
void JumpyJumpy(Collider other)
{
if (other.name == "Player")
other.attachedRigidbody.AddForce(0f, jumpForce, 0f);
}
}
Of course in order not to jump "into the space"I decreased jumpForce ten times (700) in inspector.