- Home /
value of another script not being read?
im trying to get the value of a variable from another script but its 0 even though the value is properly set
this is the code used to reference the value
Comment
forgot to mention that enem is the instance of a prefab that is assigned at start with
enem = GameObject.FindWithTag("enemy");
Your answer
Follow this Question
Related Questions
How to change a value of a reference object variable after a while ? 0 Answers
How to assign script to inspector variable 2 Answers
Creating a Prefab and Keeping Original Objects Script Information 0 Answers
One Script Referred by Another Script used by Multiple Objects 0 Answers
script doesnt go off when its called 0 Answers