16 lines
397 B
C#
16 lines
397 B
C#
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
|
|
namespace Reset.Units{
|
|
public class EnemyCombat : UnitCombat, IUnitTargetProvider{
|
|
public GameObject target;
|
|
public GameObject UnitTarget => target;
|
|
|
|
[Button]
|
|
public void SetNewTarget(GameObject newTarget){
|
|
Unit.Graph.SendEvent("New Target Set");
|
|
target = newTarget;
|
|
}
|
|
}
|
|
}
|