So i am developing a parkour game.
I need a script which i can use to detect the closest object to the player with the "parkourable" tag
Here is my code:
Need help with c# script!
I need a script which i can use to detect the closest object to the player with the "parkourable" tag
Here is my code:
Code (CSharp):
- using UnityEngine;
- using System.Collections;
- private float distance;
- public GameObject closest;
- private GameObject gos;
- private GameObject closestObject;
- }
- gos =...