Fixed demon to patron ratio issue.
This commit is contained in:
parent
e5d23e27fa
commit
7559650d35
8 changed files with 12 additions and 4 deletions
|
|
@ -14,6 +14,11 @@ public class WalkAI : MonoBehaviour {
|
|||
|
||||
GameObject poi1 = allPois[Random.Range (0, allPois.Length)];
|
||||
GameObject poi2 = allPois[Random.Range (0, allPois.Length)];
|
||||
while (poi2 == poi1) {
|
||||
poi2 = allPois[Random.Range (0, allPois.Length)];
|
||||
}
|
||||
|
||||
Debug.Log (poi1.name + "," + poi2.name);
|
||||
|
||||
destinations = new GameObject[2] {
|
||||
poi1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue