Beispiel #1
0
    public IEnumerator FindRightHand()
    {
        while (GameManager.Player == null)
        {
            yield return(null);
        }

        _rightHand = CharacterSettings.SearchHierarchyForBone(GameManager.Player.transform, PlayerRightHandName);
    }
    protected override void OnStart()
    {
        _lastState   = CameraState.Paused;
        _state       = CameraState.ToMax;
        _currAngle   = 0.0f;
        _timeInState = 0.0f;

        _pivot = CharacterSettings.SearchHierarchyForBone(transform, "CameraPivot");
        _ai    = GetComponent <EnemyAI>();

        _sound = GetComponentInChildren <CameraSpotterAudioPlayer>();
    }