Aimbot-ParallelEnv/Assets/EnviromentUIControl.cs
Koha9 ad547e4edb Parallel environment.
delete all unuse feature for Parallel environment.
it's possible to run each single environment independent
2022-10-26 16:20:27 +09:00

26 lines
613 B
C#

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class EnviromentUIControl : MonoBehaviour
{
public GameObject agentObj;
public TextMeshProUGUI remainTimeText;
private AgentWithGun agentScript;
// Start is called before the first frame update
void Start()
{
agentScript = agentObj.GetComponent<AgentWithGun>();
}
// Update is called once per frame
void Update()
{
int remainTime = agentScript.remainTime;
remainTimeText.text = "RemainTime:" + remainTime.ToString();
}
}