Add source files
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x020000F2 RID: 242
|
||||
public class LandingButtons : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06001556 RID: 5462 RVA: 0x001985B2 File Offset: 0x001967B2
|
||||
private void Start()
|
||||
{
|
||||
this.style = new GUIStyle();
|
||||
this.style.fontSize = 20;
|
||||
this.style.normal.textColor = Color.black;
|
||||
}
|
||||
|
||||
// Token: 0x06001557 RID: 5463 RVA: 0x001985E4 File Offset: 0x001967E4
|
||||
public void Update()
|
||||
{
|
||||
this.FPScount--;
|
||||
this.totalTime += Time.deltaTime;
|
||||
if (this.FPScount <= 0)
|
||||
{
|
||||
float num = (float)this.samples / this.totalTime;
|
||||
this.label = ((int)num).ToString() ?? "";
|
||||
this.totalTime = 0f;
|
||||
this.FPScount = this.samples;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04002533 RID: 9523
|
||||
public LandingSpotController _landingSpotController;
|
||||
|
||||
// Token: 0x04002534 RID: 9524
|
||||
public FlockController _flockController;
|
||||
|
||||
// Token: 0x04002535 RID: 9525
|
||||
public float hSliderValue = 100f;
|
||||
|
||||
// Token: 0x04002536 RID: 9526
|
||||
private string label = "";
|
||||
|
||||
// Token: 0x04002537 RID: 9527
|
||||
private float count;
|
||||
|
||||
// Token: 0x04002538 RID: 9528
|
||||
public int FPScount;
|
||||
|
||||
// Token: 0x04002539 RID: 9529
|
||||
public int samples = 100;
|
||||
|
||||
// Token: 0x0400253A RID: 9530
|
||||
public float totalTime;
|
||||
|
||||
// Token: 0x0400253B RID: 9531
|
||||
private GUIStyle style;
|
||||
}
|
||||
Reference in New Issue
Block a user