Question by
SnappishMoth22 · Jul 22, 2017 at 11:38 PM ·
unity 5codepage
My gameobject variable appearently doesn't exist. (I am usint Unity 5.6)
So far, my code looks like this: using Unity.engine; using System.Collections;
public class GoalScript : MonoBehavior {
void OnTriggerEnter (Collider collider) {
GameObjectcollidedWith = collider.gameObject;
if (collideWith.tag) {
GetComponent<Light>().intensity = 0;
Destroy (collideWith);
}
}
}
,
Comment
Your answer
Follow this Question
Related Questions
Unity's / C# limitations with high number of object instances? 1 Answer
How to isolate my character in the assets so I can attach the camera to script (PUN ONLINE) 0 Answers
System.IO.File' does not contain a definition for `ReadAllBytes' 2 Answers
I need help tweaking my telepoting code!!! Please Help!!! Description is long but necessary. 0 Answers
Changing the UI Text 0 Answers