コード例 #1
0
    IEnumerator DiggingCheck()
    {
        int[]  texCoord = new int[2];
        Ground sol      = GameObject.Find("sol_child").GetComponent <Ground>();

        while (isDigging)
        {
            texCoord = getTextureCoord();
            sol.DigByPoint(texCoord[0] / 64, texCoord[1] / 64);

            yield return(new WaitForSeconds(0.05f));
        }
    }