Skip to content

Instantly share code, notes, and snippets.

@saitocastel1900
Created October 25, 2022 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saitocastel1900/403d6bb05c17fd204404f939905bfd0e to your computer and use it in GitHub Desktop.
Save saitocastel1900/403d6bb05c17fd204404f939905bfd0e to your computer and use it in GitHub Desktop.
private static Lazy<Singleton3> _instance = new Lazy<Singleton3>();
public static Singleton3 Instance => _instance.Value;
public Singleton3()
{
Debug.Log("コンストラクターが呼び出されました");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment