示例#1
0
    IEnumerator leaveStation()
    {
        td.CloseDoors();
        yield return(new WaitForSeconds(3f));

        current.Stop();
        current.clip = leaving;
        current.Play();
        td.SecureDoors();
        td.doorsMoving = false;
    }
示例#2
0
    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;
    }