void Awake() { if (instance == null) { instance = this; imiManagerImp = ImiManagerImp.GetInstance(); DontDestroyOnLoad(this.gameObject); init(); } }
public static ImiManagerImp GetInstance() { if (instance == null) { lock (_lock) { if (instance == null) { instance = new ImiManagerImp(); } } } return(instance); }