added sfx for fail & spawn
This commit is contained in:
@@ -70,6 +70,9 @@ public class RagDollAgent : Agent
|
||||
public delegate void OnMoveToNextModelDelegate();
|
||||
public static OnMoveToNextModelDelegate m_MoveToNextModel;
|
||||
|
||||
public delegate void OnAgentFailDelegate();
|
||||
public static OnAgentFailDelegate m_AgentFail;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
if (RequestCamera && CameraTarget != null)
|
||||
@@ -238,10 +241,13 @@ public class RagDollAgent : Agent
|
||||
m_Temp = m_TerrainCollider.excludeLayers;
|
||||
m_TerrainCollider.excludeLayers = m_ExcludeLayer;
|
||||
}
|
||||
m_AgentFail?.Invoke();
|
||||
}
|
||||
|
||||
timer += Time.fixedDeltaTime;
|
||||
|
||||
|
||||
|
||||
if (timer >= waitTime)
|
||||
{
|
||||
timer = 0;
|
||||
|
||||
Reference in New Issue
Block a user