maint: clean-up of some combat related classes and methods for clarity
This commit is contained in:
@@ -6,14 +6,17 @@ using UnityEngine;
|
||||
|
||||
namespace Reset.Units{
|
||||
public class Enemy : Unit, ILockOnTarget, IKillable {
|
||||
// Lock-On
|
||||
public float lockonTargetRadius{ get; set; } = 10f;
|
||||
[ShowInInspector]
|
||||
public bool lockonDebug{ get; set; } = true;
|
||||
public float lockonRaycastVerticalOffset{ get; set; } = 1f;
|
||||
|
||||
// IKillable
|
||||
public float maxHealth{ get; set; }
|
||||
public float currentHealth{ get; set; }
|
||||
|
||||
// Object References
|
||||
public Animator testModelAnimator;
|
||||
|
||||
public override void UnitStart(){
|
||||
@@ -54,7 +57,7 @@ namespace Reset.Units{
|
||||
}
|
||||
|
||||
[Rpc(SendTo.Everyone)]
|
||||
void SetHealthRpc(float newHealth){
|
||||
public void SetHealthRpc(float newHealth){
|
||||
currentHealth = newHealth;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user