Exemple #1
0
    // Token: 0x060031FA RID: 12794 RVA: 0x000D050C File Offset: 0x000CE70C
    public void FixedUpdate()
    {
        if (this.IsSuspended)
        {
            return;
        }
        AnimatorDriver animatorDriver = this.Animator.AnimatorDriver;

        if (this.WallVisible)
        {
            if (animatorDriver.IsReversed || !animatorDriver.IsPlaying)
            {
                animatorDriver.SetForward();
                animatorDriver.Resume();
            }
        }
        else if (this.m_lastVisiable)
        {
            animatorDriver.SetBackwards();
            animatorDriver.Resume();
            if (SeinTransparentWallHandler.Instance)
            {
                Sound.Play(SeinTransparentWallHandler.Instance.LeaveTransparentWallSoundProvider.GetSound(null), base.transform.position, null);
            }
        }
        this.m_lastVisiable = this.WallVisible;
        if (animatorDriver.CurrentTime < this.SenseTime && this.HasSense)
        {
            animatorDriver.Pause();
            animatorDriver.CurrentTime = this.SenseTime;
            animatorDriver.Sample();
        }
        this.m_beingTriggered = false;
    }
Exemple #2
0
    // Token: 0x060031F5 RID: 12789 RVA: 0x000D03F8 File Offset: 0x000CE5F8
    public void Start()
    {
        AnimatorDriver animatorDriver = this.Animator.AnimatorDriver;

        if (this.WallVisible)
        {
            this.Animator.Initialize();
            animatorDriver.GoToEnd();
        }
        else if (this.HasSense)
        {
            this.Animator.Initialize();
            animatorDriver.CurrentTime = this.SenseTime;
            animatorDriver.Pause();
            animatorDriver.Sample();
        }
        else
        {
            this.Animator.Initialize();
            animatorDriver.GoToStart();
        }
    }