Пример #1
0
    public void PlayAnim(string name)
    {
        SimpleAnimation sa = simAnims[GetAnimation(name)];

        if (!(curAnim.Equals(sa)) && animating)
        {
            CancelInvoke();
            animIndex = 0;
            curAnim   = sa;
            InvokeRepeating("LoopAnimation", 0.0f, 1.0f / curAnim.fps);
        }
    }