//laesst den Spieler in alle Richtungen schiessen //rechte Maustaste //5s Cooldown private void multishotskill() { Vector3 playerpos = rb.position; //gibt eigene Position als Vektor aus if ((Input.GetMouseButtonDown(1)) && (Time.time > nextfirems) && (manacon.AktuelleMana >= 10) && (msunlock == true)) //rechte Maustaste gedrückt + Skill aktiv { nextfirems = Time.time + cdmultishot; GameObject newbullet = Instantiate(bullet8) as GameObject; newbullet.transform.position = new Vector3(playerpos.x, playerpos.y, playerpos.z); GameObject newbullet1 = Instantiate(bullet1) as GameObject; newbullet1.transform.position = new Vector3(playerpos.x, playerpos.y, playerpos.z); GameObject newbullet2 = Instantiate(bullet2) as GameObject; newbullet2.transform.position = new Vector3(playerpos.x, playerpos.y, playerpos.z); GameObject newbullet3 = Instantiate(bullet3) as GameObject; newbullet3.transform.position = new Vector3(playerpos.x, playerpos.y, playerpos.z); GameObject newbullet4 = Instantiate(bullet4) as GameObject; newbullet4.transform.position = new Vector3(playerpos.x, playerpos.y, playerpos.z); GameObject newbullet5 = Instantiate(bullet5) as GameObject; newbullet5.transform.position = new Vector3(playerpos.x, playerpos.y, playerpos.z); GameObject newbullet6 = Instantiate(bullet6) as GameObject; newbullet6.transform.position = new Vector3(playerpos.x, playerpos.y, playerpos.z); GameObject newbullet7 = Instantiate(bullet7) as GameObject; newbullet7.transform.position = new Vector3(playerpos.x, playerpos.y, playerpos.z); manacon.DealManaDamage(msmana); } }