// Update is called once per frame void Update() { if (!End.Fin) { Tp.Bordure(this.gameObject); if (Input.GetKey(controle[4]) || AttackButton.IsPressed) { if (nextShoot > 0) { nextShoot -= Time.deltaTime; } if (nextShoot <= 0) { Shoot(); } } if (joystick.InputDir != Vector2.zero || Input.GetKey(controle[0]) || Input.GetKey(controle[1]) || Input.GetKey(controle[2]) || Input.GetKey(controle[3])) { Deplacement(); Rotation(); } textScore.text = "Score : " + ScoreTotal.ToString(); } }
void Update() { transform.Rotate(new Vector3(0, 0, rotationSpeed) * Time.deltaTime); Tp.Bordure(this.gameObject); }