Example #1
0
 //todo build a custom editor for this
 public override bool Check(Context context) {
     //if (componentTypeName == null) {
     //    componentTypeName = "";
     //}
     //componentType = Type.GetType(componentTypeName);
     //if (componentType == null) {
     //    Debug.Log("Cannot find component type: " + componentTypeName);
     //}
     return true;// context.entity.GetComponent(componentType) != null;
 }
Example #2
0
	    public abstract float Score(Context context);
Example #3
0
	    public abstract bool Check(Context context);
Example #4
0
 public virtual void Setup(Context context) {
     this.context = context;
     entity = context.entity;
 }