Exemple #1
0
 // Update is called once per frame
 void Update()
 {
     if (brickCount == 0 && Ball.transform.position.y <= 0)
     {
         BrickPlacer.PlaceBlocks();
     }
 }
Exemple #2
0
    public float BrickRatio; //0 - 100; Higher numbers mean more percent blue bricks

    void Awake()
    {
        if (_instance != null && _instance != this)
        {
            Destroy(gameObject);
        }
        else
        {
            _instance = this;
            DontDestroyOnLoad(gameObject);
        }
    }