// 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; }
private void Start() { currentSceneIndex = SceneManager.GetActiveScene().buildIndex; gameCanvasSession = FindObjectOfType <GameCanvasSession>(); }
private void Start() { gameCanvasSession = FindObjectOfType <GameCanvasSession>(); levelSelect.SetActive(false); }
private void Start() { gameCanvasSession = FindObjectOfType <GameCanvasSession>(); sceneIndex = gameCanvasSession.GetIndexOfLostLevel(); }