updates to archer/ui buttons

This commit is contained in:
Vladdie
2022-04-29 20:04:09 -05:00
parent a1f833f7a9
commit e960e7fce9
9 changed files with 1000 additions and 68 deletions

View File

@@ -66,7 +66,7 @@ public class Arrow : NetworkBehaviour {
void OnTriggerEnter(Collider objectHit) {
if (objectHit != null) { return; }
if (objectHit.transform.parent.gameObject.tag == "Player") {
if (objectHit.gameObject.tag == "ArcherTarget") {
//Checks if the other object is the player
MoveStateManager playerMovement = objectHit.GetComponent<MoveStateManager>();