mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-13 12:55:16 -05:00
updates to archer/ui buttons
This commit is contained in:
@@ -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>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user