Esempio n. 1
0
 private void CountBreakableBlocks()
 {
     level = FindObjectOfType <level>();
     if (tag == "Breakable")
     {
         level.CountBlocks();
     }
 }
Esempio n. 2
0
 private void CountBreakableBlocks()
 {
     //we need to access to the type of level
     //all instances are adding another block so that why it can count the number of blocks.
     level = FindObjectOfType <level>();
     if (tag == "Breakable")
     {
         level.CountBlocks();
     }
 }
Esempio n. 3
0
    private void Start()
    {
        //findobjectでlevelスクリプトを参照してブロックの数を数える

        level = FindObjectOfType <level>();
        if (tag == "Breakable")
        {
            level.CountBlocks();
        }
    }