Rework of base interactables and managed behaviors
This commit is contained in:
committed by
Michal Pikulski
parent
00e1746ac4
commit
f88bd0e2c9
@@ -1,8 +1,4 @@
|
||||
using UnityEngine;
|
||||
using Input;
|
||||
using Interactions;
|
||||
|
||||
namespace Interactions
|
||||
namespace Interactions
|
||||
{
|
||||
/// <summary>
|
||||
/// Interactable that immediately completes when the character arrives at the interaction point.
|
||||
@@ -11,11 +7,11 @@ namespace Interactions
|
||||
public class OneClickInteraction : InteractableBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Override: Immediately completes the interaction with success when character arrives.
|
||||
/// Main interaction logic: Simply return success.
|
||||
/// </summary>
|
||||
protected override void OnCharacterArrived()
|
||||
protected override bool DoInteraction()
|
||||
{
|
||||
CompleteInteraction(true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user