Quantcast
Channel: Questions in topic: "namespace"
Viewing all articles
Browse latest Browse all 398

OnTriggerEnter is not working ?

$
0
0
OnTriggerEnter is not working when i use the following namespace " UnityStandardAssets.Vehicles.Car" this is my script : using UnityEngine; using System.Collections; using UnityStandardAssets.Vehicles.Car; using UnityEditor; public class gallonTRIGGER : MonoBehaviour { private fuelSystem fuel; public GameObject gallonMesh; void Awake() { } void OnTriggerEnter(Collider takes) { fuel.currentFuel = fuel.maxfuel; Debug.Log("done"); Destroy(gallonMesh); } }

Viewing all articles
Browse latest Browse all 398


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