VladimirPirozhenko f494fea030 Added tools for pool creation
It using code generation and reflection
2022-08-19 03:49:06 +03:00

19 lines
371 B
C#

using UnityEngine;
public class Turret : PoolingObject<Turret>, IObstacle, IDamageDealer, IResettable
{
public void DealDamage(IDamageable target, int amount)
{
target.TakeDamage(amount);
}
public void Impact()
{
gameObject.SetActive(true);
}
public void ResetToDefault()
{
gameObject.SetActive(true);
}
}