I have new User(); object in one .cs file in the same project, how do I move it across to the other .cs file so the same information stored in u.blah is there?
How do I store an Object and more it into another .CS stream?
Collapse
X
-
Tags: None
-
Ok to be clearer, this is what I mean:
on my script Login.cs I have:
----------------------------
MainMenu main = new MainMenu();
main.LoggedUser = u;
main.Show();
----------------------------
Then in MainMenu.cs I have:
----------------------------
name_room.Drawn Text = LoggedUser.User _First_Name;
----------------------------
The error is coming from MainMenu.cs, I got no idea how to fix it.
Comment