private void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.tag == "Ground") { if (isJumping) { CamShaker.DoShake(1, .5f); } isJumping = false; } }
public void CheckCode() { string codeText = code.ToString(); if (_field.text == codeText) { GameController.FinishScene(); } else { CamShaker.DoShake(3, 0.5f); } }