(client) feat:添加Tick接口及时钟控制

This commit is contained in:
m0_75251201
2025-07-09 11:35:52 +08:00
parent 11004d5595
commit 10136a987d
14 changed files with 225 additions and 0 deletions

View File

@ -0,0 +1,30 @@
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Cell
{
public class InitClock : MonoBehaviour
{
static float timer = 0;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
var clock= Clock.Instance;
}
// Update is called once per frame
//void Update()
//{
// if (Input.GetKeyUp(KeyCode.W))
// {
// SceneManager.LoadScene("SampleScene");
// }
// if (timer > 1)
// {
// timer -= 1;
// Debug.Log("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD>ӳ<EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>");
// }
// timer += Time.deltaTime;
//}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: be939c7ca1c4f374b83b6535b3cbb656