public void SetScopedLook(LookConfig config, Quaternion fixedRotation) { _lookComponent = _player.GetOrAddComponent <LookComponent>(); _lookComponent.CurrentConfig = config; _superFixedTransform.rotation = fixedRotation; _superFixedTransform.position = _player.transform.position; _lookComponent.FixedForward = _superFixedTransform; }
public void Start() { CurrentConfig = new LookConfig(); _camera = GetComponentInChildren <Camera>(); if (FixedForward == null) { DebugMsg.ComponentNotFound(Debug.LogWarning, typeof(Transform), "Initialized with <b>this</b> object transform instead."); FixedForward = transform; } }
public void SetScopedLook(LookConfig config, Transform fixedForward) { _lookComponent = _player.GetOrAddComponent <LookComponent>(); _lookComponent.CurrentConfig = config; _lookComponent.FixedForward = fixedForward; }
public void SetFreeLook(LookConfig config) { _lookComponent = _player.GetOrAddComponent <LookComponent>(); _lookComponent.CurrentConfig = config; _lookComponent.FixedForward = _player.transform; }