private void onParticipationControllerInitializationComplete()
        {
            ParticipationController obj = participationController;

            obj.InitializationCompleteAction = (System.Action)Delegate.Remove(obj.InitializationCompleteAction, new System.Action(onParticipationControllerInitializationComplete));
            isReadyForParticipation          = true;
            if (pendingParticipationRequest != null)
            {
                participationController.PrepareParticipation(pendingParticipationRequest);
            }
        }
示例#2
0
        private void setInteractionButtonActive()
        {
            if (PlayerHandle.IsNull || Prop.PropDef.PropType == PropDefinition.PropTypes.PartyGame || !dataEntityCollection.TryGetComponent <GameObjectReferenceData>(PlayerHandle, out var component))
            {
                return;
            }
            if (component == null)
            {
                Log.LogError(this, "THIS WOULD HAVE CRASHED! setInteractionButtonActive(): gameObjectRef in NULL!");
                return;
            }
            if (component.GameObject == null)
            {
                Log.LogError(this, "THIS WOULD HAVE CRASHED! setInteractionButtonActive(): gameObjectRef.GameObject in NULL!");
                return;
            }
            ParticipationController component2 = component.GameObject.GetComponent <ParticipationController>();

            if (component2 != null)
            {
                component2.PrepareParticipation(new ParticipationRequest(ParticipationRequest.Type.Prepare, Prop.gameObject, "PropUser"));
            }
        }