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(); }
private void SwitchCameraView(OnUserSwitchedController info) { if (info.IsSwitchingToSlingshot) { StartCoroutine(SwitchTo1stPerson()); } else { StartCoroutine(SwitchTo3rdPerson()); } }
private void BlockUserInteractions(OnUserSwitchedController _) { _canInteract = false; }
private void QuitSlingshotCallback(OnUserSwitchedController info) { _isInSlingshot = info.IsSwitchingToSlingshot; }
private void StopMovement(OnUserSwitchedController info) { IsGettingThrown = false; }