Example #1
0
    void Start()
    {
        SetStep(0f);

        timer       = startDelayTime;
        timerForEnd = particleDuration;

        if (particleRoot != null)
        {
            isParticle = true;

            clips = particleSounds.GetComponent <AudioClipList>().audioClips;
        }

        if (soundsToPlay != null)
        {
            isSound = true;

            clips = soundsToPlay.GetComponent <AudioClipList>().audioClips;
        }
    }
Example #2
0
 void Start()
 {
     clips = audioInfo.GetComponent <AudioClipList>().audioClips;
 }