- Home /
Question by
strongholdeep · May 07, 2015 at 02:23 PM ·
c#getcomponentissuescript erroraccessing scripts
GetComponent C# issue
I want to access to a script in the same object, the script "lal". I want to take the float: "afloat" and make it the same as "myfloat". But there is an issue, and I tryied every thing but I didn't found a solution! Please help me!
issue.png
(24.8 kB)
Comment
Best Answer
Answer by steakpinball · May 07, 2015 at 02:25 PM
Remove the quotes around "lal".
script = gameObject.GetComponent<lal>();
Your answer

Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Getcomponent unity 4b11 0 Answers
GetComponent not working C# 1 Answer
C# GetComponent Issue 2 Answers