Hi,
I know this will seem dumb but why does my console spit out that “boundingBox” (a game scene object of the same name, is not a Unity.GameObject member?
// the projectile script acts as a way to monitor and destroy its host once it has exceeded the bounds of the game
var bounds : Bounds;
var boundsObject : GameObject = boudningBox;
function Start()
{
InvokeRepeating("CheckPosition", 0.5, 1.0);
}
function CheckPosition () {
print("transform.position " + transform.position);
print("boundsObject.collider.bounds.min " + boundsObject.collider.bounds.min);
print("boundsObject.collider.bounds.max " + boundsObject.collider.bounds.max);
}
How do I get a prefab, which this script is attached to, to recognize the boundingBox once the prefab has been instantiated?
Thanks.