protected unsafe override IEnumerator SetAnimatorDefinition()
        {
            Animator2D animator = m_animator2D;

            animator.add_Initialised(new Animator2DInitialisedEventHandler((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            AnimatedBoardCharacterData animatedBoardCharacterData = (AnimatedBoardCharacterData)GetAnimatedCharacterData();

            animator.SetDefinition(animatedBoardCharacterData.animatedObjectDefinition, null, (Graphic[])null);
            while (true)
            {
                Animator2DInitialisationState initialisationState = animator.GetInitialisationState();
                if ((int)initialisationState == 1 || ((int)initialisationState == 2 && animator.get_isActiveAndEnabled()))
                {
                    yield return(null);

                    continue;
                }
                break;
            }
        }