Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Aiming At Nearest Problem

$
0
0
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.


Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class CameraController : MonoBehaviour {
  5.  
  6.     public Texture sprCrosshair;
  7.     bool autoAiming=false;
  8.  
  9.     // Use this for initialization
  10.     void Start () {
  11.    
  12.     }...
Aiming At Nearest Problem

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>