ValueDoesNotChange.cs 250 B

12345678910111213141516
  1. namespace UnityTest
  2. {
  3. public class ValueDoesNotChange : ActionBase
  4. {
  5. private object val = null;
  6. protected override bool Compare (object a)
  7. {
  8. if (val == null)
  9. val = a;
  10. if (!val.Equals (a))
  11. return false;
  12. return true;
  13. }
  14. }
  15. }