Exemplo n.º 1
0
    private void Create(SAnimation targetSoket, SPlayDesc info)
    {
        if (targetSoket.IsValid)
        {
            targetSoket.Clear();
        }

        AnimationClipPlayable p = AnimationClipPlayable.Create(m_MixerManager.m_Mixer.GetGraph(), info.clip);

        if (targetSoket == m_A)
        {
            m_MixerManager.Connect(p, 0);
        }
        else
        {
            m_MixerManager.Connect(p, 1);
        }

        targetSoket.Play(p, info);
    }
Exemplo n.º 2
0
 public void Stop()
 {
     m_A.Clear();
     m_B.Clear();
 }