//setShot for enemies
 public void shot(float posX, float posY)
 {
     origin = shotOrigin.ENEMY;
     transform.position = new Vector3(posX, posY, 89);
 }
 //setShot for player
 public void setShot(float posX)
 {
     origin = shotOrigin.PLAYER;
     transform.position = new Vector3(posX, -3.532f, 89);
 }