Hotfix null pointer exception when respawning player

This commit is contained in:
Denis-Cosmin Nutiu 2019-07-14 15:05:56 +03:00
parent 064f47d52a
commit 929045a7b9
2 changed files with 4 additions and 4 deletions

View file

@ -48,9 +48,9 @@ namespace src.Managers
private void StartLevel() private void StartLevel()
{ {
_playerController.Respawn();
StartCoroutine(PreInitGame()); StartCoroutine(PreInitGame());
_levelManager.InitLevel(); _levelManager.InitLevel();
_playerController.Respawn();
} }
public UpgradeManager GetUpgradeManager() public UpgradeManager GetUpgradeManager()

View file

@ -118,7 +118,7 @@ PlayerSettings:
16:10: 1 16:10: 1
16:9: 1 16:9: 1
Others: 1 Others: 1
bundleVersion: 0.1 bundleVersion: 0.2
preloadedAssets: [] preloadedAssets: []
metroInputSource: 0 metroInputSource: 0
wsaTransparentSwapchain: 0 wsaTransparentSwapchain: 0
@ -156,7 +156,7 @@ PlayerSettings:
Android: com.SmeltGames Android: com.SmeltGames
Standalone: com.Company.ProductName Standalone: com.Company.ProductName
buildNumber: {} buildNumber: {}
AndroidBundleVersionCode: 1 AndroidBundleVersionCode: 3
AndroidMinSdkVersion: 16 AndroidMinSdkVersion: 16
AndroidTargetSdkVersion: 0 AndroidTargetSdkVersion: 0
AndroidPreferredInstallLocation: 1 AndroidPreferredInstallLocation: 1
@ -245,7 +245,7 @@ PlayerSettings:
AndroidTargetArchitectures: 5 AndroidTargetArchitectures: 5
AndroidSplashScreenScale: 0 AndroidSplashScreenScale: 0
androidSplashScreen: {fileID: 0} androidSplashScreen: {fileID: 0}
AndroidKeystoreName: X:/Unity/projekt-bombs/user.keystore AndroidKeystoreName: X:/Dropbox/MadBombs/user.keystore
AndroidKeyaliasName: release AndroidKeyaliasName: release
AndroidBuildApkPerCpuArchitecture: 0 AndroidBuildApkPerCpuArchitecture: 0
AndroidTVCompatibility: 1 AndroidTVCompatibility: 1