private void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(this); } else { Destroy(this); } }
protected override void Start() { myNetChecker = GetComponent <NetChecker>(); base.Start(); }
public NetConsumer(BlockingCollection <NetCheckModel> queue, CancellationTokenSource endTokenSource) { this.queue = queue; this.endTokenSource = endTokenSource; netChecker = new NetChecker(); }