Пример #1
0
 /// <summary>
 /// Awake
 /// Called
 /// </summary>
 public void AwakeIns()
 {
     _protoQueue             = new FiniteProcessQueue <HoxisProtocol>(protocolQueueCapacity, protocolQueueProcessQuantity);
     _protoQueue.onProcess  += ProcessProtocol;
     _affairQueue            = new FiniteProcessQueue <KV <int, object> >(affairQueueCapacity, affairQueueProcessQuantity);
     _affairQueue.onProcess += ProcessAffair;
     _heartbeatTimer         = new RegularTimer(heartbeatInterval, PostHeartbeat);
     isActive = true;
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     level = Instantiate(LevelPrefab);
     level.GameController = this;
     waveTimer            = new RegularTimer(WaveInterval);
     enemyTimer           = new RegularTimer(EnemyInterval);
     GameStartAudio.Play();
     Music.Play();
     isGameOver = false;
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     currentHealth        = MaxHealth;
     body                 = GetComponent <Rigidbody2D>();
     directionUpdateTimer = new RegularTimer(1f);
 }