unity-abgabe2/Assets/FPController/JumpPad.cs
2021-04-25 16:20:23 +02:00

19 lines
369 B
C#

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();
}
}
}