Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

singleton unity

// allows all non-static instances to access the same static instance
public class NonStaticClass : MonoBehaviour {
    private static NonStaticClass staticInstance;
}
 
PREVIOUS NEXT
Tagged: #singleton #unity
ADD COMMENT
Topic
Name
9+8 =