您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。

29 行
699B

  1. using UnityEngine;
  2. using System.Collections.Generic;
  3. using System.Collections;
  4. namespace coa4u
  5. {
  6. public class PredicateDistanceGreater : Predicate
  7. {
  8. protected CalcerVector first;
  9. protected CalcerVector second;
  10. protected float distance;
  11. public PredicateDistanceGreater(CalcerVector one, CalcerVector other, float dist)
  12. : base()
  13. {
  14. first = one;
  15. second = other;
  16. distance = dist;
  17. }
  18. public override bool check()
  19. {
  20. if (Vector3.Distance(first.value, second.value) > distance)
  21. return true;
  22. else
  23. return false;
  24. }
  25. }
  26. }