How do I store an Object and more it into another .CS stream?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Oliver Dixon
    New Member
    • Aug 2010
    • 2

    How do I store an Object and more it into another .CS stream?

    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?
  • Oliver Dixon
    New Member
    • Aug 2010
    • 2

    #2
    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

    Working...