Quantcast
Channel: Questions in topic: "renderer.enabled"
Viewing all articles
Browse latest Browse all 99

please need a littlebit of help with a ForceShield

$
0
0
Hey guys this script does not work propperly cn you help me? its attached to a sphere that simulates a force Shield. and my idea was to get the forseshield ony able to see when its been hit by my machine gun script wich is attachted to my space ship function Awake (){ gameObject.renderer.enabled = false; } function Update () { } function OnTriggerEnter (hit : Renderer) { GameObject.FindGameObjectWithTag("Shield"); hit.gameObject.renderer.enabled = true; }

Viewing all articles
Browse latest Browse all 99

Trending Articles



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