Implement hand menu features
This commit is contained in:
22
Assets/DamageNumbersPro/Scripts/Settings/ShakeSettings.cs
Normal file
22
Assets/DamageNumbersPro/Scripts/Settings/ShakeSettings.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace DamageNumbersPro
|
||||
{
|
||||
[System.Serializable]
|
||||
public struct ShakeSettings
|
||||
{
|
||||
public ShakeSettings(Vector2 customDefault)
|
||||
{
|
||||
offset = customDefault;
|
||||
frequency = 50f;
|
||||
}
|
||||
|
||||
[Tooltip("Moves back and fourth from negative offset to positive offset.")]
|
||||
public Vector2 offset;
|
||||
[Tooltip("Changes the speed at which the number moves back and fourth.\nUsed in a sinus function.")]
|
||||
public float frequency;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user