Ejemplo n.º 1
0
 public override bool CanEnter()
 {
     if (negation)
     {
         return(target && !target.IsValid());
     }
     else
     {
         return(target && target.IsValid());
     }
 }
Ejemplo n.º 2
0
 public override bool PerformAction()
 {
     if (perform)
     {
         Debug.Log("Perform " + ++n);
     }
     if (location && location.IsValid())
     {
         Debug.Log(location + ": " + location.GetTargetObject());
     }
     return(base.PerformAction());
 }