mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-17 05:18:27 +00:00
Add cleanup
This commit is contained in:
parent
9a5d6a3ec6
commit
8026142938
1 changed files with 9 additions and 2 deletions
|
@ -8,11 +8,18 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
|
||||
public class VehicleExitingState : BaseVehicleState
|
||||
{
|
||||
Coroutine m_coroutine;
|
||||
|
||||
|
||||
public override void OnBecameInactive()
|
||||
{
|
||||
this.Cleanup();
|
||||
|
||||
public override void OnBecameActive() {
|
||||
|
||||
if (m_coroutine != null)
|
||||
StopCoroutine(m_coroutine);
|
||||
m_coroutine = null;
|
||||
|
||||
base.OnBecameInactive();
|
||||
}
|
||||
|
||||
public void ExitVehicle(bool immediate = false)
|
||||
|
|
Loading…
Add table
Reference in a new issue