IEnumerator leaveStation() { td.CloseDoors(); yield return(new WaitForSeconds(3f)); current.Stop(); current.clip = leaving; current.Play(); td.SecureDoors(); td.doorsMoving = false; }
IEnumerator leaveStation() { // td.CloseDoors(); yield return(new WaitForSeconds(3f)); current.Stop(); current.clip = leaving; current.Play(); /*if (!playerInside) { * current.spatialBlend = 1; * current.minDistance = 100; * } else { * current.spatialBlend = 0; * }*/ td.SecureDoors(); //td.doorsMoving = false; }