Hellooo everyone, RiokuTheSlayer here, with another problem with one of my scripts. I'm such a noob, I know haha. This time it's with aiming at the nearest object. Basically, I stole a script from the Unity website, and it's not working. Here's my entire script.
Aiming At Nearest Problem
Code (CSharp):
- using UnityEngine;
- using System.Collections;
- public Texture sprCrosshair;
- bool autoAiming=false;
- // Use this for initialization
- }...