Esempio n. 1
0
 public void goUp()
 {
     if (transform.position.y < maxHeight)
     {
         Instantiate(effect, transform.position, Quaternion.identity);
         shake.PlayerShakeUp();
         targetPos = new Vector2(transform.position.x, transform.position.y + yIncr);
     }
 }