maint: clean-up of some combat related classes and methods for clarity
This commit is contained in:
@@ -10,8 +10,6 @@ namespace Reset.Core {
|
||||
public class IsInteractable : ConditionTask{
|
||||
public BBParameter<GameObject> target;
|
||||
protected override string info{
|
||||
|
||||
|
||||
get{
|
||||
// string agentName = agent == null ? agentType.ToString() : target.ToString();
|
||||
return $"<b>{target.ToString()}</b> is interactable";
|
||||
@@ -37,7 +35,7 @@ namespace Reset.Core {
|
||||
//Called once per frame while the condition is active.
|
||||
//Return whether the condition is success or failure.
|
||||
protected override bool OnCheck(){
|
||||
IInteractable interactable = agent.GetComponent<IInteractable>();
|
||||
IInteractable interactable = target.value.GetComponent<IInteractable>();
|
||||
|
||||
if (interactable == null) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user