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

        foreach (Transform cube in childCubes.value)
        {
            CubeManager mgr = cube.GetComponent <CubeManager>();
            if (!mgr.CanMoveToDirection(direction.value))
            {
                check = false;
                break;
            }
        }
        return(check);
    }