public override void OnStateExit(State to_state) { OwnerMB.StopCoroutine(AcquireTargetLock()); OwnerMB.StopCoroutine(Fire()); ((UFO)Owner).ShutDownLaser(); _has_fired = false; }
/*************************************/ public override void OnStateEnter(StateMachineMB.State from) { if (InTransit) { OwnerMB.StopCoroutine(_fade_out_thread); OwnerMB.StopCoroutine(_fade_in_thread); InTransit = false; } _fade_in_thread = FadeIn_Coroutine(); OwnerMB.StartCoroutine(_fade_in_thread); }