/// <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; }
// 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; }
// Use this for initialization void Start() { currentHealth = MaxHealth; body = GetComponent <Rigidbody2D>(); directionUpdateTimer = new RegularTimer(1f); }