示例#1
0
    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);
      }
    }
示例#2
0
 public void OnNextCurCT(CurCTFlowEntity entity)
 {
     _curCTSubject.OnNext(entity);
 }