示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     mainThrust        = thrust;
     rigidbody         = GetComponent <Rigidbody>();
     audioSource       = GetComponent <AudioSource>();
     sceneLoader       = FindObjectOfType <SceneLoader>();
     gameCanvasSession = FindObjectOfType <GameCanvasSession>();
     currentSceneIndex = SceneManager.GetActiveScene().buildIndex;
 }
示例#2
0
 private void Start()
 {
     currentSceneIndex = SceneManager.GetActiveScene().buildIndex;
     gameCanvasSession = FindObjectOfType <GameCanvasSession>();
 }
示例#3
0
 private void Start()
 {
     gameCanvasSession = FindObjectOfType <GameCanvasSession>();
     levelSelect.SetActive(false);
 }
示例#4
0
 private void Start()
 {
     gameCanvasSession = FindObjectOfType <GameCanvasSession>();
     sceneIndex        = gameCanvasSession.GetIndexOfLostLevel();
 }