- Home /
Menu script having problem
Hi guys i have no clue how to solve this problem.I have a public class (player) in another script but when i try using that class in my menu script it says The type or namespace name `Player' could not be found. Are you missing a using directive or an assembly reference? Here are my 2 scripts With player class-http://pastebin.com/0wtMVwPc
Menu-
http://pastebin.com/Sz3eDkSZ
I checked that i have correct spelling including caps.
Answer by Nerevar · Jun 30, 2014 at 09:37 AM
Hello,
Player is inside your network class
solutions :
1) Make a dedicated script for player
2) Make that class static (access it with NetworkManager .Player) doc
3) Make an instance of network Class to be able to reference the Player class (tuto)
if anyone see other solutions feel free to complete :p
regards
Your answer
Follow this Question
Related Questions
GUI Button not working...but the the script is correct... 2 Answers
How to make a Main Menu 3 Answers
One GameObjects Script Activating Another GameObjects Script 1 Answer
OnMouseEnter not working. 0 Answers
[Closed] MainMenu Script error 2 Answers