Esempio n. 1
0
 public override bool CanEnter()
 {
     if (negation)
     {
         return(target && !target.IsValid());
     }
     else
     {
         return(target && target.IsValid());
     }
 }
Esempio 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());
 }