twinStick/twinStickCrawler/Assets/Scripts/Creatures/Boxsack/BoxsackVitalReaction.cs

26 lines
524 B
C#
Raw Normal View History

2024-12-27 19:01:20 +00:00
using System;
2024-12-24 20:40:18 +00:00
using UnityEngine;
namespace Creatures.Boxsack
{
2024-12-27 19:01:20 +00:00
2024-12-24 20:40:18 +00:00
public class BoxsackVitalReaction : MonoBehaviour, IVitalReaction
{
2024-12-27 19:01:20 +00:00
public Animation boxsackAnimation;
2024-12-24 20:40:18 +00:00
public void Hit()
{
//Play animation
2024-12-27 19:01:20 +00:00
boxsackAnimation.Stop();
boxsackAnimation.Play("HitAnimation");
2024-12-24 20:40:18 +00:00
print("Boxsack Vital Reaction Hit");
}
public void Heal()
{
print("Boxsack Vital Reaction Heal");
}
}
}