private void DeactivateSystem(OnUserSwitchedController info)
 {
     if (info.IsSwitchingToSlingshot)
     {
         enabled = false;
         ReleaseObject();
     }
 }
        private void PlaySlingShotLoad(OnUserSwitchedController info)
        {
            if (!info.IsSwitchingToSlingshot)
            {
                return;
            }

            _source.clip = _slingshotLoadedSfx;
            _source.Play();
        }
Exemple #3
0
 private void SwitchCameraView(OnUserSwitchedController info)
 {
     if (info.IsSwitchingToSlingshot)
     {
         StartCoroutine(SwitchTo1stPerson());
     }
     else
     {
         StartCoroutine(SwitchTo3rdPerson());
     }
 }
Exemple #4
0
 private void BlockUserInteractions(OnUserSwitchedController _)
 {
     _canInteract = false;
 }
 private void QuitSlingshotCallback(OnUserSwitchedController info)
 {
     _isInSlingshot = info.IsSwitchingToSlingshot;
 }
Exemple #6
0
 private void StopMovement(OnUserSwitchedController info)
 {
     IsGettingThrown = false;
 }