void Awake() { m_Camera = GetComponent <FreeFlyCamera>(); m_IsFollowingGetter = UISelectorFactory.createSelector <bool>(FollowUserContext.current, nameof(IFollowUserDataProvider.isFollowing), OnUserObjectChanged); m_UserObjectGetter = UISelectorFactory.createSelector <GameObject>(FollowUserContext.current, nameof(IFollowUserDataProvider.userObject)); m_PosElasticity = m_Camera.settings.positionElasticity; m_RotElasticity = m_Camera.settings.rotationElasticity; }
void Awake() { m_Camera = GetComponent <FreeFlyCamera>(); UIStateManager.stateChanged += OnUIStateChanged; }