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("主场景的时钟初始化器"); // } // timer += Time.deltaTime; //} } }