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