Esempio n. 1
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(this);
     }
     else
     {
         Destroy(this);
     }
 }
Esempio n. 2
0
    protected override void Start()
    {
        myNetChecker = GetComponent <NetChecker>();

        base.Start();
    }
Esempio n. 3
0
 public NetConsumer(BlockingCollection <NetCheckModel> queue, CancellationTokenSource endTokenSource)
 {
     this.queue          = queue;
     this.endTokenSource = endTokenSource;
     netChecker          = new NetChecker();
 }