Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// fallback to collision validator
|
||||
/// </summary>
|
||||
public class DefaultBlockValidator : IBlockValidator
|
||||
{
|
||||
public bool IsValid(BlockEditContext ctx)
|
||||
{
|
||||
IValidator v = ctx.GhostObject.GetComponent<IValidator>();
|
||||
return v != null ? v.IsValidPlacement(ctx.GhostObject) : true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user