Beispiel #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);
 }
Beispiel #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());
 }
Beispiel #3
0
 private void OnEnable()
 {
     m_animator2D = this.GetComponent <Animator2D>();
     if (null == m_animator2D)
     {
         this.set_enabled(false);
         return;
     }
     if (null == s_currentCamera)
     {
         s_currentCamera = Camera.get_main();
         if (null == s_currentCamera)
         {
             return;
         }
     }
     CameraHandler.AddMapRotationListener(OnMapRotationChanged);
 }
Beispiel #4
0
 private void Start()
 {
     CameraHandler.AddMapRotationListener(OnMapRotationChanged);
 }