some old local changes
This commit is contained in:
1 parent
70a767cf09
commit
1c1dd5cab6
48 files changed
+1017
No files matched your search
+11
@@ -0,0 +1,11 @@
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections;
|
||||
|
||||
namespace coa4u
|
||||
{
|
||||
public abstract class Predicate
|
||||
{
|
||||
public abstract bool check();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 97583e10785bec74c939caf211b248b8
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
@@ -0,0 +1,29 @@
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections;
|
||||
|
||||
namespace coa4u
|
||||
{
|
||||
public class PredicateDistanceGreater : Predicate
|
||||
{
|
||||
protected CalcerVector first;
|
||||
protected CalcerVector second;
|
||||
protected float distance;
|
||||
|
||||
public PredicateDistanceGreater(CalcerVector one, CalcerVector other, float dist)
|
||||
: base()
|
||||
{
|
||||
first = one;
|
||||
second = other;
|
||||
distance = dist;
|
||||
}
|
||||
|
||||
public override bool check()
|
||||
{
|
||||
if (Vector3.Distance(first.value, second.value) > distance)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 17a24fb6b2830f24fb10e079734a432f
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
@@ -0,0 +1,29 @@
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections;
|
||||
|
||||
namespace coa4u
|
||||
{
|
||||
public class PredicateDistanceLess : Predicate
|
||||
{
|
||||
protected CalcerVector first;
|
||||
protected CalcerVector second;
|
||||
protected float distance;
|
||||
|
||||
public PredicateDistanceLess(CalcerVector one, CalcerVector other, float dist)
|
||||
: base()
|
||||
{
|
||||
first = one;
|
||||
second = other;
|
||||
distance = dist;
|
||||
}
|
||||
|
||||
public override bool check()
|
||||
{
|
||||
if (Vector3.Distance(first.value, second.value) <= distance)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f98bec35befcf141bfda4291e7aea41
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections;
|
||||
|
||||
namespace coa4u
|
||||
{
|
||||
public class PredicateFalse : Predicate
|
||||
{
|
||||
public override bool check()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c046509f9d6d55b45a9643e86a29c95c
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections;
|
||||
|
||||
namespace coa4u
|
||||
{
|
||||
public class PredicateTrue : Predicate
|
||||
{
|
||||
public override bool check()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8f6a4b0a53e20504fa28937299d4df63
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
Reference in new issue
Block a user