示例#1
0
        private void LoadContextualControlsLayout()
        {
            PropUser localPlayerPropUser = Service.Get <PropService>().LocalPlayerPropUser;

            if (localPlayerPropUser != null && localPlayerPropUser.Prop != null)
            {
                dispatcher.DispatchEvent(new ControlsScreenEvents.SetRightOption(localPlayerPropUser.Prop.PropControls.DefaultControls));
            }
            else if (GetComponentInChildren <InvitationalItemExperience>() != null)
            {
                InvitationalItemExperience componentInChildren = GetComponentInChildren <InvitationalItemExperience>();
                dispatcher.DispatchEvent(new ControlsScreenEvents.SetRightOption(componentInChildren.ControlLayout));
            }
            else if (!(prevLocoController is SlideController))
            {
                LoadControlsLayout();
            }
        }