3DTD/Assets/Scripts/Tower/Tower.cs

31 lines
535 B
C#

using UnityEngine;
using UnityEngine.Assertions;
public abstract class Tower : MonoBehaviour
{
public bool towerSelected { get; set; } = true;
protected HealthComponent healthComp;
// Getters
protected virtual void Awake()
{
healthComp = GetComponent<HealthComponent>();
Assert.IsNotNull(healthComp);
}
protected virtual void OnDestroy()
{
}
protected virtual void Update()
{
}
protected virtual void FixedUpdate()
{
}
}