fix: remove multiple execution call onPlayerLookAt from OctoWorldEvent
This commit is contained in:
@@ -147,6 +147,12 @@ namespace OctoCore.Components
|
||||
EvaluateTrigger(col, false);
|
||||
}
|
||||
|
||||
public void ResetLookAt()
|
||||
{
|
||||
_lookAtTimer = 0f;
|
||||
_lookAtTriggered = false;
|
||||
}
|
||||
|
||||
void TriggerWithCondition()
|
||||
{
|
||||
switch (_condition)
|
||||
@@ -255,7 +261,7 @@ namespace OctoCore.Components
|
||||
else
|
||||
{
|
||||
_lookAtTimer = 0f;
|
||||
_lookAtTriggered = false;
|
||||
//_lookAtTriggered = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user