private void Injecting(AvaterProvider avaterProvider, AvaterSynchronizer avaterSynchronizer, Configs config) { _avaterProvider = avaterProvider; _synchronizer = avaterSynchronizer; _config = config; Itinialzie(); }
private void Injecting(IStageScaler scaler, AvaterProvider avaterProvider, IAnchorTargetProvider anchorTargetProvider) { _stageScaler = scaler; _avaterProvider = avaterProvider; _anchorTargetProvider = anchorTargetProvider; _avaterProvider.OnSpawenAvater.Subscribe(go => { go.transform.SetParent(_rooTransform, false); }); //おおきさ _stageScaler.StageScale .Subscribe(x => { _rooTransform.localScale = Vector3.one * x; }); //むき(未使用) _stageScaler.StageAngle .Subscribe(x => { _rooTransform.rotation = Quaternion.AngleAxis(x, Vector3.up) * Quaternion.identity; }); // タップされた場所を基準座標にする _anchorTargetProvider.OnAncherChangedAsObservable .Subscribe(_ => { _rooTransform.position = _anchorTargetProvider.CurrentAncherTransform.position; }); }
private void Injecting(AvaterProvider avaterProvider) { avaterProvider.OnSpawenAvater .Subscribe(go => { target = go.transform; }); }
void Injecting(IArCameraTransformProvider cameraTransformProvider, AvaterProvider provider) { _cameraTransformProvider = cameraTransformProvider; provider.OnSpawenAvater .Subscribe(go => { target = go.transform; }); }
private void Injecting( AvaterProvider avaterProvider, IInputEventProvider inputEventProvider, IInputSetable inputSetable) { _avaterProvider = avaterProvider; _inputEventProvider = inputEventProvider; _inputSetable = inputSetable; Initialize(); }