v0.1.3
This commit is contained in:
1 parent
2d6abcd684
commit
4dd11a9f73
11 files changed
+265
-27
No files matched your search
@@ -53,7 +53,7 @@ namespace Pets.Systems.Activities
|
||||
if (!Require(foodEntity, out CPosition cFoodPosition)) continue;
|
||||
|
||||
Vector3 targetPos = Vector3.zero;
|
||||
|
||||
|
||||
if (!CanGetTo(data.PetPosition, cFoodPosition, new Vector3(1 + offset, 0, 0), out targetPos))
|
||||
if (!CanGetTo(data.PetPosition, cFoodPosition, new Vector3(-1 - offset, 0, 0), out targetPos))
|
||||
if (!CanGetTo(data.PetPosition, cFoodPosition, new Vector3(0, 0, 1 + offset), out targetPos))
|
||||
|
||||
Reference in new issue
Block a user