Ejemplo n.º 1
0
 protected override void OnEnable()
 {
     base.OnEnable();
     InitializeAnimator();
     m_playableDirector.set_playableAsset(null);
     m_playableDirector.set_extrapolationMode(0);
     TimelineContextUtility.SetContextProvider(m_playableDirector, this);
     CameraHandler.AddMapRotationListener(OnMapRotationChanged);
 }
Ejemplo n.º 2
0
 protected unsafe void Awake()
 {
     //IL_001e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0028: Expected O, but got Unknown
     //IL_0035: Unknown result type (might be due to invalid IL or missing references)
     //IL_003f: Expected O, but got Unknown
     m_animationCallback = new CharacterAnimationCallback(m_animator2D);
     m_animator2D.add_Initialised(new Animator2DInitialisedEventHandler((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_animator2D.add_AnimationLooped(new AnimationLoopedEventHandler((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_playableDirector.set_playableAsset(null);
     CameraHandler.AddMapRotationListener(OnMapRotationChanged);
     this.StartCoroutine(Load());
 }
Ejemplo n.º 3
0
 public void EditAnimation(TimelineAsset timelineAsset)
 {
     if (m_playableDirector == null)
     {
         m_playableDirector = this.GetComponent <PlayableDirector>();
     }
     m_playableDirector.set_playableAsset(timelineAsset);
 }
Ejemplo n.º 4
0
 public static void DestroyTimelineAssetEffectInstance(PlayableDirector instance, bool clearFightContext)
 {
     if (clearFightContext)
     {
         TimelineContextUtility.ClearFightContext(instance);
     }
     TimelineContextUtility.ClearContextProvider(instance);
     instance.set_playableAsset(null);
     if (null != s_instance)
     {
         s_timelineAssetEffectPool.Release(instance.get_gameObject());
     }
     else
     {
         Object.Destroy(instance.get_gameObject());
     }
 }