void OnDestroy() { if (IsTakeOver) { takeOverPosition_ = transform.position; takeOverRotation_ = transform.rotation; } else { #if DOWNLOADED_ARFOUNDATION LoaderUtility.Deinitialize(); LoaderUtility.Initialize(); #endif } }
void OnSceneUnloaded(Scene current) { LoaderUtility.Deinitialize(); LoaderUtility.Initialize(); }
public void BackButtonPressed() { SceneManager.LoadScene("Menu", LoadSceneMode.Single); LoaderUtility.Deinitialize(); }