Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
scope / global variables
#1
Hello again,
I'm attempting to store/call on variables globally.

I tired the following using the class below,
but then when attempting to store and retrieve from a different script, calling Globals.num1 , I cannot seem to store values. It always comes to value 0.
 
Code:
Copy      Help
public class Globals
{
    
    public static int num1;

}


Thanks in advance


Messages In This Thread
scope / global variables - by cuitino - 09-26-2024, 09:02 PM
RE: scope / global variables - by Gintaras - 09-27-2024, 05:13 AM
RE: scope / global variables - by Gintaras - 09-27-2024, 08:36 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)