
Assets\Scripts\gameManager.cs(7,12): error CS0246: The type or namespace name 'Text' could not be found (are you missing a using directive or an assembly reference?)
작성 코드)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class gameManager : MonoBehaviour
{
public Text timeTxt;
float time = 0.0f;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
time += Time.deltaTime;
timeTxt.text = time.ToString("N2");
}
}
