コード例 #1
0
    private void Respawn(Vector2 direction)
    {
        movement.Go(new Vector2(0, 0));

        transform.position = location;

        movement.Go(direction);
    }
コード例 #2
0
    private IEnumerator RoundPlaying()
    {
        Debug.Log("RoundPlaying");
        messageText.text = string.Empty;

        ball.Go();

        while (!CheckWallHit())
        {
            yield return(null);
        }
    }
コード例 #3
0
    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();
    }