using System.Collections; using System.Collections.Generic; using UnityEngine; public class JumpPad : MonoBehaviour { void Start() { } void OnTriggerEnter(Collider other){ var characterController = other.GetComponent(); if (characterController != null){ characterController.JumpPad(); } } }