Пример #1
0
 void Awake()
 {
     Application.targetFrameRate = 60;
     _playerRecorder             = Player.GetComponentInChildren <PlayerRecorderController>();
     _playerAudio             = GetComponent <AudioSource>();
     _song                    = Resources.Load("Songs/BeatOfTheTerror") as AudioClip;
     _playerAudio.clip        = _song;
     _playerAudio.loop        = true;
     _mainCamera              = Camera.main;
     _mainCameraStartPosition = _mainCamera.transform.position;
     PlayerReplay.InitLocalRecords();
     _username  = PlayerPrefs.GetString(Constants.USERNAME_KEY);
     _levelName = _startLevelName;
 }
Пример #2
0
 void GhostRecordsValueChanged(int value)
 {
     PlayerPrefs.SetInt(Constants.NUM_OF_LOCAL_GHOST_RECORDS, value);
     PlayerReplay.InitLocalRecords();
     GrappleUI.TotalGhostRecordsLocal.text = PlayerReplay.NumOfLocalRecords.ToString();
 }