mirror of
https://github.com/ConjureETS/PixelSphinx.git
synced 2026-03-24 02:20:58 +00:00
34 lines
553 B
C#
34 lines
553 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class Earthquake : MonoBehaviour {
|
|
int gaugeLevel;
|
|
const int gaugeMax=4;
|
|
|
|
// Use this for initialization
|
|
void Start()
|
|
{
|
|
gaugeLevel = 0;
|
|
InvokeRepeating("fillGauge", 1, 1F);
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
|
|
void fillGauge()
|
|
{
|
|
if (gaugeLevel < gaugeMax)
|
|
{
|
|
gaugeLevel += 1;
|
|
}
|
|
else
|
|
{
|
|
gaugeLevel = 0;
|
|
}
|
|
print("gauge is at: " + gaugeLevel);
|
|
}
|
|
}
|