示例#1
0
    /// <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;
    }
示例#2
0
    public void onHuntSceneChanged(MasterHuntScript huntScript)
    {
        int hunterCount = gameSettings.hunterParty.Count;

        Hunter[] hunter = new Hunter[hunterCount];
    }