19 lines
369 B
C#
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();
|
||
|
}
|
||
|
}
|
||
|
}
|