コード例 #1
0
    // Use this for initialization
    void Start()
    {
        canBeDestroyed = (this.tag == "Breakable");
        if (canBeDestroyed)
        {
            brickToBreak = brickToBreak + 1;             // or bricktobreak++; couse of this we will know how many bricks to break we have
        }

        hits    = 0;
        Manager = GameObject.FindObjectOfType <lvlMng> ();
    }
コード例 #2
0
 void Start()
 {
     levelMng = GameObject.FindObjectOfType <lvlMng>();
 }