Skip to content

TypeScript code snippet – How to change static variables in other scripts unity?

public class EXAMPLE : MonoBehaviour 
{
  static int VARIABLE;
}





public class DifSCRIPT : MonoBehaviour 
{
  EXAMPLE.VARIABLE = 5;
}
See also  How to create text file with Python and store a dictionary?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.