Esempio n. 1
0
    void Update()
    {
        if (spawn.waitTime <= 0)
        {
            GetComponent <Slider>().value = (Time.timeSinceLevelLoad - holdWaitTime) / levelTime;

            timerFinished = (Time.timeSinceLevelLoad >= levelTime);
            if (timerFinished)
            {
                if (!GameObject.FindWithTag("Fox") && !GameObject.FindWithTag("Lizard"))
                {
                    victoryObject.SetActive(true);
                    WinAudio win = FindObjectOfType <WinAudio>();
                    if (!win.GetComponent <AudioSource>().isPlaying)
                    {
                        win.GetComponent <AudioSource>().Play();
                    }
                    StartCoroutine(LoadNextLevel());
                }
            }
        }
    }
Esempio n. 2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WinAudio obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 public virtual void Sync(EnginePtr exeeng, Direct3D exed3d, OpenGL exeogl, Havok exehvk, GuiFactory exegui, Forms exefms, DirectIpt exedip, WinIpt exewip, FFmpeg exeffm, CryptoPP execpp, ID3Lib exeid3, WinAudio exewad, XAudio2 exexa2, WinMidi exemid, WinSock exewsk, AsyncWorkers exeaws, SQLite exesql, HaruPdf exepdf, RayTracer exertr, Pbrt exepbrt, PythonScriptEngine exepse, Console execle)
 {
     IronSightEnginePINVOKE.IDirect3D_Sync(swigCPtr, EnginePtr.getCPtr(exeeng), Direct3D.getCPtr(exed3d), OpenGL.getCPtr(exeogl), Havok.getCPtr(exehvk), GuiFactory.getCPtr(exegui), Forms.getCPtr(exefms), DirectIpt.getCPtr(exedip), WinIpt.getCPtr(exewip), FFmpeg.getCPtr(exeffm), CryptoPP.getCPtr(execpp), ID3Lib.getCPtr(exeid3), WinAudio.getCPtr(exewad), XAudio2.getCPtr(exexa2), WinMidi.getCPtr(exemid), WinSock.getCPtr(exewsk), AsyncWorkers.getCPtr(exeaws), SQLite.getCPtr(exesql), HaruPdf.getCPtr(exepdf), RayTracer.getCPtr(exertr), Pbrt.getCPtr(exepbrt), PythonScriptEngine.getCPtr(exepse), Console.getCPtr(execle));
     if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
     {
         throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
     }
 }