16 lines
289 B
C#
16 lines
289 B
C#
|
using UnityEngine;
|
||
|
|
||
|
namespace EntityStates.Barrel;
|
||
|
|
||
|
public class Opened : EntityState
|
||
|
{
|
||
|
private static int OpenedStateHash = Animator.StringToHash("Opened");
|
||
|
|
||
|
public override void OnEnter()
|
||
|
{
|
||
|
base.OnEnter();
|
||
|
PlayAnimation("Body", OpenedStateHash);
|
||
|
SetPingable(value: false);
|
||
|
}
|
||
|
}
|