25 lines
366 B
C#
25 lines
366 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class WaveClamp : WaveController {
|
|
public WaveController wave;
|
|
public float min = 0;
|
|
public float max = 1;
|
|
|
|
public override float Get ()
|
|
{
|
|
return Mathf.Clamp(wave.Get(), min, max);
|
|
}
|
|
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
}
|