Firstborn/Assets/RPG Creation Kit/Scripts/Interfaces/IHittable.cs

15 lines
449 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace RPGCreationKit
{
/// <summary>
/// Used on objects that can be hit, knocked out with physics and that generates decal (for blood use IDamageable.GenerateBlood).
/// </summary>
public interface IHittable
{
void Hit(Vector3 hitDir, float forceAmount = 25, DamageContext damageContext = null);
void GenerateDecal();
}
}