PlayerVisual Customization
This commit is contained in:
@@ -3,9 +3,7 @@ using UnityEngine.Events;
|
||||
|
||||
public class Springboard : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private float _force = 60;
|
||||
[SerializeField] private float _duration = .4f;
|
||||
[SerializeField] private AnimationCurve _curve = AnimationCurve.EaseInOut(0, 1, 1, 0);
|
||||
[SerializeField] private float _force = 20;
|
||||
[SerializeField] private UnityEvent _onJump;
|
||||
|
||||
void OnTriggerEnter(Collider col)
|
||||
@@ -13,7 +11,7 @@ public class Springboard : MonoBehaviour
|
||||
if (Player.Instance && col.gameObject == Player.Instance.gameObject)
|
||||
{
|
||||
Debug.Log("Player triggered springboard");
|
||||
//Player.Instance.AddExtraForce(transform.up * _force, true, _duration, _curve);
|
||||
Player.Instance.AddForce(transform.up * _force);
|
||||
_onJump?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user