added: enemy target acquisition, better pathfinding, moved combat reference to unit
This commit is contained in:
@@ -24,6 +24,14 @@ namespace Reset.Units{
|
||||
get{ if (!_graph) { _graph = GetComponent<GraphOwner>(); } return _graph; }
|
||||
}
|
||||
|
||||
private UnitCombat _combat;
|
||||
internal UnitCombat Combat{
|
||||
get {
|
||||
if (_combat == null) { _combat = GetComponent<UnitCombat>(); }
|
||||
return _combat;
|
||||
}
|
||||
}
|
||||
|
||||
// Debug and Gizmos
|
||||
public NetworkVariable<FixedString64Bytes> graphStateAsString;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user