[고2 게임 프로그래밍] 3 - (4)
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TimeController : MonoBehaviour { // 카운트다운 & 카운트 업 public bool isCountDown = true; // 카운트다운으로 시간 측정(true) // 게임 최대시간(초), 카운트다운->이 값~0까지/카운트업->0~이 값까지 public float gameTime = 0; public bool isTimeOver = false; // 타이머 정지 public float displayTime = 0; // 화면에 표시되는 시간 float times = 0; // 현재 시간 void Start() { //..
2024.03.21