mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-12 04:15:16 -05:00
minor fix to boulder
This commit is contained in:
@@ -13,7 +13,7 @@ public class Boulder : NetworkBehaviour
|
||||
}
|
||||
|
||||
void OnTriggerEnter(Collider other) {
|
||||
if (objectHit.gameObject.tag == "ArcherTarget") {
|
||||
if (other.gameObject.tag == "ArcherTarget") {
|
||||
GameObject player = other.gameObject;//Turns the collider into a game object
|
||||
Vector3 Dir = boulder.velocity;//Finds the bolder's velocity
|
||||
float Power = boulder.velocity.magnitude;// * 250;//Finds the power of the boulder by using it's velocity and a scaler
|
||||
|
||||
Reference in New Issue
Block a user