コード例 #1
0
    void SetAudioSynthLooperState(float pos, float duration)
    {
        LogManager.Log("received AudioSynthLooper state " + pos + " " + duration);
        NAAudioSynthLooper l = GetComponent <NAAudioSynthLooper>();

        if (l == null)
        {
            l = GetComponentInChildren <NAAudioSynthLooper>();
        }
        if (l != null)
        {
            l.pos      = pos;
            l.duration = duration;
            l.Generate();
        }
    }