2023-05-04 20:25:44 -07:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class Bouncepad : MonoBehaviour
|
|
|
|
{
|
|
|
|
public enum Facing
|
|
|
|
{
|
|
|
|
Left,
|
|
|
|
Right,
|
|
|
|
}
|
|
|
|
|
|
|
|
[SerializeField]
|
|
|
|
Facing bounceDirection = Facing.Left;
|
|
|
|
|
|
|
|
[SerializeField]
|
|
|
|
public float bounceForce = 20f;
|
2023-05-05 02:51:53 -07:00
|
|
|
[SerializeField]
|
|
|
|
public float verticalModifier = 1.0f;
|
2023-05-04 20:25:44 -07:00
|
|
|
|
|
|
|
public Facing Direction()
|
|
|
|
{
|
|
|
|
return this.bounceDirection;
|
|
|
|
}
|
|
|
|
}
|