public void PerformReset() { score = 0; player.gameObject.SetActive(true); platformManager.gameObject.SetActive(true); initialPlatform.gameObject.SetActive(true); cam.GetComponent <CameraManager>().enabled = true; player.PerformReset(); player.transform.position = initPlayerPos; cam.position = initCamPos; player.WakeUp(); platformManager.PerformReset(); }
public void Reset() { mainCamera.position = camInitPos; demoSpawner.PerformReset(); demoSpawner.gameObject.SetActive(false); }