PixelSphinx/Assets/Scripts/Earthquake.cs
2016-04-08 08:54:05 -04:00

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);
}
}