(client) feat:添加Tick接口及时钟控制
This commit is contained in:
30
Client/Assets/Scripts/Test/InitClock.cs
Normal file
30
Client/Assets/Scripts/Test/InitClock.cs
Normal 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;
|
||||
//}
|
||||
}
|
||||
}
|
2
Client/Assets/Scripts/Test/InitClock.cs.meta
Normal file
2
Client/Assets/Scripts/Test/InitClock.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: be939c7ca1c4f374b83b6535b3cbb656
|
Reference in New Issue
Block a user