private void Respawn(Vector2 direction) { movement.Go(new Vector2(0, 0)); transform.position = location; movement.Go(direction); }
private IEnumerator RoundPlaying() { Debug.Log("RoundPlaying"); messageText.text = string.Empty; ball.Go(); while (!CheckWallHit()) { yield return(null); } }
private bool useBrickerTrigger = true; // true if the "SpecialBricks" must act // Use this for initialization void Start() { // Resolution of the Canvas Screen.SetResolution(932, 452, false, 60); useSpecialBricks = PlayerPrefs.GetInt("useSpecialBricks", 0); Debug.Log("Start useSpecialBricks " + useSpecialBricks); useBrickerTrigger = false; specialBricksToggle.isOn = (useSpecialBricks == 1); useBrickerTrigger = true; ball.Go(); }