Exemplo n.º 1
0
 private void Crunch()
 {
     isCrunch = !isCrunch;
     crossHair.CrunchingAni(isCrunch);
     if (isCrunch)
     {
         applyspeed      = crunchspeed;
         applyCrunchposY = CrunchposY;
     }
     else
     {
         applyspeed      = walkspeed;
         applyCrunchposY = originposY;
     }
     StartCoroutine(CrunchCoroutine());
 }