private void UpdateCT(Weapon weapon) { for (var i=0; i < _curCT.Count; ++i) { _curCT[i] -= Time.deltaTime; if (_curCT[i] < 0) _curCT[i] = 0; var flowEntity = new CurCTFlowEntity(i, _curCT[i]); weapon.Stream.OnNextCurCT(flowEntity); } }
public void OnNextCurCT(CurCTFlowEntity entity) { _curCTSubject.OnNext(entity); }