Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

whats singleton unity

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