guys… as i undestand… one can only create a static var before the update function is that correct? … beucase i tried this
function LateUpdate () {
static var misileimpact = targets.GetComponent (Vector3);
}
and it says some bullshit about expectin } found static ¬¬
then i tried in the colision function
function OnTriggerEnter(other : Collider){
if(other.gameObject.tag == “aimable” wasTriggered == false){
mySphere.radius = 0;
targets = other.gameObject;
wasTriggered = true;
var alvo = targets.GetComponent (Vector3);
static var misileimpact = targets.GetComponent (Vector3);
}
same thing… expecting } found static… wth… why is this hapening?.. i need to be able to send these informations outside so other scripts can know about that vector3
EDIT:: NEVERRMIIINDDD SORRY IM REALY SORRY ABOUT POSTING JUST DONT REPLY IGNORE THIS TOPIC UNTIL HE DESAPEAIRS