// Start is called before the first frame update void Start() { Debug.Log("Starting main controller"); //Manually set character type here mainCamera = Camera.main; SetupMainCharacter(); //Setup score controller Statics.ScoreController = FindObjectOfType <ScoreController>(); Statics.ScoreController.LoadHighScore(); Statics.DeathController = FindObjectOfType <DeathController>(); UpdateCameraPosition(); UpdateGunPosition(); UpdateCameraAngleMobile(); UpdateCameraAngleComputer(); UpdateTargetPosition(); //Disable gun for now gun.SetActive(false); //Start game sounds pauseMenuController = FindObjectOfType <PauseMenuController>(); if (Statics.GameSoundsEnabled) { pauseMenuController.UnmuteGame(); } else { pauseMenuController.MuteGame(); } //Convert this to a unit test to confirm that the //zombies colliders are actually being loaded properly LoadZombieColliders(); }