namespace Zinnia.Rule { using UnityEngine; /// /// Simplifies implementing s that only accept s. /// public abstract class Vector3Rule : Rule { /// public override bool Accepts(object target) { if (ShouldAutoRejectDueToState()) { return false; } Vector3? targetVector3 = target as Vector3?; return targetVector3 != null && Accepts((Vector3)targetVector3); } /// /// Determines whether a is accepted. /// /// The to check. /// if is accepted, otherwise. protected abstract bool Accepts(Vector3 targetVector3); } }