unity-abgabe2/Assets/FPController/JumpPad.cs

19 lines
369 B
C#
Raw Normal View History

2021-04-25 14:20:23 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class JumpPad : MonoBehaviour
{
void Start()
{
}
void OnTriggerEnter(Collider other){
var characterController = other.GetComponent<Controls>();
if (characterController != null){
characterController.JumpPad();
}
}
}