Since declaring a class as static will automatically make all of its properties and methods static, do you still need to use the static keyword on properties and methods?
For example:
public static class MyClass : MonoBehaviour
{
public static int someProperty;
public static void MyFunction()
{
Debug.Log (someProperty);
}
}
↧