This commit is contained in:
AliIbnAbiTalib
2023-04-06 23:43:59 +02:00
parent ef09b2770b
commit 98cdfc691e
4 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ public abstract class Player : MonoBehaviour
currentField.placedItem = items[index];
GameObject temp = Instantiate(items[index].gameObject);
Trap t = temp.GetComponent<Trap>();
t.target = this;
t.target = gameObject.GetComponent<NoPlayablePlayer>();
temp.transform.position = currentField.transform.position + (Vector3.up / 2);
activeItem = Item.Type.None;
}