void Start() { StartCoroutine (EndIntro()); myAudio = GetComponent<AudioSource>(); myAudio.SetScheduledStartTime((double)delayAudio); myAudio.Play(); }
static public int SetScheduledStartTime(IntPtr l) { try { UnityEngine.AudioSource self = (UnityEngine.AudioSource)checkSelf(l); System.Double a1; checkType(l, 2, out a1); self.SetScheduledStartTime(a1); return(0); } catch (Exception e) { return(error(l, e)); } }
static int SetScheduledStartTime(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject <UnityEngine.AudioSource>(L, 1); double arg0 = (double)LuaDLL.luaL_checknumber(L, 2); obj.SetScheduledStartTime(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }