26 lines
452 B
C#
26 lines
452 B
C#
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;
|
|
[SerializeField]
|
|
public float verticalModifier = 1.0f;
|
|
|
|
public Facing Direction()
|
|
{
|
|
return this.bounceDirection;
|
|
}
|
|
}
|