public GrenadesChannel(IUnityBridgeState <GrenadesState> bridge, SenderStrategy strategy, float refreshTime) { _bridge = bridge; setupStrategy(strategy); SetupInterpolator(_cubeInterpolator); if (bridge != null) { SetupPeriod((long)(refreshTime * 1000)); SetupStateProvider(_bridge.GetCurrentState); } }
public PlayerPositionStateChannel( IUnityBridgeState <PlayerPosition> bridge, SenderStrategy strategy, float refreshTime) { _bridge = bridge; setupStrategy(strategy); SetupPeriod((long)(refreshTime * 1000)); SetupInterpolator(_cubeInterpolator); SetupStateProvider(_bridge.GetCurrentState); }