private void SetAccroche() { m_positionState = PositionVitre.Accroche; transform.position = m_snapPoint.position; m_rigidbody.velocity = Vector3.zero; m_rigidbody.useGravity = false; }
private void SetEnBas() { m_positionState = PositionVitre.EnBas; m_rigidbody.velocity = Vector3.zero; transform.position = m_origin; m_rigidbody.useGravity = false; }
private void SetAuDessusDecroche() { m_positionState = PositionVitre.AuDessusDecroche; m_rigidbody.useGravity = true; m_leftSource.pitch = 0.9f; m_rightSource.pitch = 0.9f; m_leftSource.PlayOneShot(m_leftSource.clip); m_rightSource.PlayOneShot(m_rightSource.clip); }
private void SetEnDessous() { m_positionState = PositionVitre.EnDessous; m_rigidbody.useGravity = true; }