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); }
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()); }
public void EditAnimation(TimelineAsset timelineAsset) { if (m_playableDirector == null) { m_playableDirector = this.GetComponent <PlayableDirector>(); } m_playableDirector.set_playableAsset(timelineAsset); }
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()); } }