예제 #1
0
 private void OnCollisionEnter2D(Collision2D col)
 {
     if (col.gameObject.tag == "Ground")
     {
         if (isJumping)
         {
             CamShaker.DoShake(1, .5f);
         }
         isJumping = false;
     }
 }
예제 #2
0
    public void CheckCode()
    {
        string codeText = code.ToString();

        if (_field.text == codeText)
        {
            GameController.FinishScene();
        }
        else
        {
            CamShaker.DoShake(3, 0.5f);
        }
    }