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

26 lines
524 B
C#

using System;
using UnityEngine;
namespace Creatures.Boxsack
{
public class BoxsackVitalReaction : MonoBehaviour, IVitalReaction
{
public Animation boxsackAnimation;
public void Hit()
{
//Play animation
boxsackAnimation.Stop();
boxsackAnimation.Play("HitAnimation");
print("Boxsack Vital Reaction Hit");
}
public void Heal()
{
print("Boxsack Vital Reaction Heal");
}
}
}