示例#1
0
    // Use this for initialization
    void Start()
    {
        Debug.Log("Start");
        blockSceneManager = GameObject.FindObjectOfType <BlockSceneManager>();
        timesHits         = 0;

        // check if current instance has breakable tag.
        isBreakable = (this.tag == "Breakable");
        if (isBreakable)
        {
            // increment variable of total breakable bricks
            breakableCount++;
        }
    }
示例#2
0
 void Start()
 {
     blockSceneManager = GameObject.FindObjectOfType <BlockSceneManager>();
 }
示例#3
0
    // Use this for initialization
    void Start()
    {
        Debug.Log ("Start");
        blockSceneManager = GameObject.FindObjectOfType<BlockSceneManager>();
        timesHits = 0;

        // check if current instance has breakable tag.
        isBreakable = (this.tag == "Breakable");
        if(isBreakable)
        {
            // increment variable of total breakable bricks
            breakableCount++;
        }
    }