using UnityEngine;
public class Fire_SpaseShip : MonoBehaviour {
float reloadTimer = 12f;
float curTime;
void Start() {
curTime = reloadTimer;
}
void Timer() {
Debug.Log("Timer!");
}
void Update () {
if (curTimer > 0) { curTime -= Time.deltaTime; }
if (curTime <= 0) { Timer(); curTime = reloadTimer; }
}
}