28 lines
424 B
C#
Raw Normal View History

2025-09-24 11:24:38 +05:00
namespace TPSBR
{
using UnityEngine;
using Fusion.Addons.AnimationController;
public sealed class ShootLayer : AnimationLayer
{
// PUBLIC MEMBERS
public ShootState Shoot => _shoot;
// PRIVATE MEMBERS
[SerializeField]
private ShootState _shoot;
// AnimationLayer INTERFACE
protected override void OnFixedUpdate()
{
if (_shoot.IsFinished() == true)
{
_shoot.Deactivate(0.1f);
}
}
}
}