예제 #1
0
 protected override bool isSuitable(CubeManager mgr)
 {
     if (cubesInDecomposition.value.Count > 0)
     {
         return(mgr.IsTouchingNeighbourInCompose() && !mgr.IsInCompose());
     }
     return(mgr.CanDecompose() && !mgr.IsInCompose());
 }
예제 #2
0
 protected override bool isSuitable(CubeManager mgr)
 {
     if (cubesInDecomposition.value.Count > 0) {
         return mgr.IsTouchingNeighbourInCompose() && !mgr.IsInCompose();
     }
     return mgr.CanDecompose() && !mgr.IsInCompose();
 }