/// <summary> /// Called when the script is called and grabs needed game objects in the /// scene. /// </summary> void Start() { masterHuntScript = GameObject.Find(MASTER_HUNT_LOOP). GetComponent <MasterHuntScript>(); actualCamera = transform.Find(ACTUAL_CAMERA).gameObject; if (actualCamera == null) { Debug.LogError("The camera could not be found in " + gameObject.name); } playerCameraController = GetComponent <CharacterController>(); hunterParty = GameObject.Find(HUNTER_PARTY); Cursor.lockState = CursorLockMode.Confined; }
public void onHuntSceneChanged(MasterHuntScript huntScript) { int hunterCount = gameSettings.hunterParty.Count; Hunter[] hunter = new Hunter[hunterCount]; }