WXMC/.svn/pristine/f9/f9de8ad3caadbf564a85de9f70b03e794cc37e39.svn-base

29 lines
504 B
Plaintext
Raw Normal View History

2024-12-04 16:18:46 +08:00
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;
}
}