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  Check if the key exists or not in JSON in Python

Leave a Reply

Your email address will not be published. Required fields are marked *

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