Add source files
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x02000053 RID: 83
|
||||
public class StopMotionAnimations : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06000ACE RID: 2766 RVA: 0x000D768D File Offset: 0x000D588D
|
||||
private void Awake()
|
||||
{
|
||||
this.animator = base.GetComponent<Animator>();
|
||||
}
|
||||
|
||||
// Token: 0x06000ACF RID: 2767 RVA: 0x000D769B File Offset: 0x000D589B
|
||||
internal void updateAni()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000AD0 RID: 2768 RVA: 0x000D76A0 File Offset: 0x000D58A0
|
||||
private void Update()
|
||||
{
|
||||
if (this.skipani)
|
||||
{
|
||||
this.timet += Time.deltaTime;
|
||||
if (this.timet > this.frameTime)
|
||||
{
|
||||
this.timet -= this.frameTime;
|
||||
this.animator.speed = this.frameSpeed;
|
||||
return;
|
||||
}
|
||||
this.animator.speed = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000F6B RID: 3947
|
||||
private Animator animator;
|
||||
|
||||
// Token: 0x04000F6C RID: 3948
|
||||
private bool skipani = true;
|
||||
|
||||
// Token: 0x04000F6D RID: 3949
|
||||
private float timet;
|
||||
|
||||
// Token: 0x04000F6E RID: 3950
|
||||
public float frameTime = 0.125f;
|
||||
|
||||
// Token: 0x04000F6F RID: 3951
|
||||
public float frameSpeed = 2f;
|
||||
}
|
||||
Reference in New Issue
Block a user