TEST: trap and shakecam

This commit is contained in:
manhduyhoang90
2026-05-18 21:22:34 +07:00
parent 5025383676
commit b7e2c80488
151 changed files with 23277 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
using UnityEngine;
namespace FirstGearGames.SmoothCameraShaker
{
public class ShakableBase : MonoBehaviour
{
#region Types.
public enum ShakerTypes
{
CameraShaker = 0,
ObjectShaker = 1
}
#endregion
#region Serialized.
/// <summary>
///
/// </summary>
[Tooltip("Shaker type to use. CameraShaker will subscribe to your current or otherwise configured CameraShaker. ObjectShaker will subscribe to the first ObjectShaker found on or in parented objects.")]
[SerializeField]
private ShakerTypes _shakerType = ShakerTypes.CameraShaker;
/// <summary>
/// Shaker type to use. CameraShaker will subscribe to your current or otherwise configured CameraShaker. ObjectShaker will subscribe to the first ObjectShaker found on or in parented objects.s
/// </summary>
public ShakerTypes ShakerType { get { return _shakerType; } }
#endregion
}
}