예제 #1
0
    protected override bool OnCheck()
    {
        bool check = false;

        foreach (Transform cube in childCubes.value)
        {
            CubeManager mgr = cube.GetComponent <CubeManager>();
            Debug.Log(string.Format("IsTouchingOtherFreePlayCube {0}", mgr.transform.name));
            if (mgr.IsTouchingFreePlayCube())
            {
                check = true;
                break;
            }
        }
        return(check);
    }