29 lines
504 B
Plaintext
29 lines
504 B
Plaintext
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
|
|
public class AccumeSlider : Slidable
|
|
{
|
|
[SerializeField]
|
|
protected float m_sensitivity;
|
|
|
|
[SerializeField]
|
|
protected float m_accumulation;
|
|
|
|
public override void Slide(float delta)
|
|
{
|
|
base.Slide(delta);
|
|
|
|
m_accumulation += delta * m_sensitivity;
|
|
}
|
|
|
|
protected override void VirtualStart()
|
|
{
|
|
base.VirtualStart();
|
|
|
|
m_accumulation = 0.0f;
|
|
}
|
|
}
|