Ejemplo n.º 1
0
 protected unsafe void OnEnable()
 {
     //IL_000d: Unknown result type (might be due to invalid IL or missing references)
     //IL_0017: Expected O, but got Unknown
     m_animator2D.add_AnimationLooped(new AnimationLoopedEventHandler((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_animationCallback = new CharacterAnimationCallback(m_animator2D);
     m_context           = new MapCharacterObjectContext(this);
     m_context.Initialize();
     m_playableDirector.set_extrapolationMode(0);
 }
Ejemplo n.º 2
0
 protected unsafe void OnDisable()
 {
     //IL_005c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0066: Expected O, but got Unknown
     if (m_movementCoroutine != null)
     {
         this.StopCoroutine(m_movementCoroutine);
         m_movementCoroutine = null;
     }
     if (m_animationCallback != null)
     {
         m_animationCallback.Release();
         m_animationCallback = null;
     }
     if (m_context != null)
     {
         m_context.Release();
         m_context = null;
     }
     m_animator2D.remove_AnimationLooped(new AnimationLoopedEventHandler((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
 }