using System.Collections; using System.Collections.Generic; using UnityEngine; public class JumpBooster : MonoBehaviour { public float boost = 100; private void OnTriggerStay(Collider other) { if(other.tag == "Player") { if(other.GetComponent() != null) { other.GetComponent().OnJumpBoost(boost); } } } }