Ejemplo n.º 1
0
 private void OnAnimationStarted(Chuzzle chuzzle)
 {
     if (!AnimatedChuzzles.Contains(chuzzle))
     {
         AnimatedChuzzles.Add(chuzzle);
         chuzzle.AnimationFinished += OnAnimationFinished;
     }
 }
Ejemplo n.º 2
0
    private void OnAnimationStarted(Chuzzle chuzzle)
    {
        if (isAlreadyChangedState)
        {
            Debug.LogWarning("Already changed state create new chuzzle");
            return;
        }

        if (!AnimatedChuzzles.Contains(chuzzle))
        {
            AnimatedChuzzles.Add(chuzzle);
            chuzzle.AnimationFinished += OnAnimationFinished;
        }
    }