private void destroySelf() { if (isInvitationLocalPlayer) { ParticipationController component = invitingPlayerObject.GetComponent <ParticipationController>(); if (component != null) { component.ForceStopParticipation(new ParticipationRequest(ParticipationRequest.Type.Stop, itemObject, "PenguinInteraction")); } } restoreCamera(); UnityEngine.Object.Destroy(base.gameObject); }
private void CompleteAndRemoveSequence(State state) { try { sequenceCompleted(state); } catch (Exception ex) { Log.LogError(this, ex.Message); Log.LogException(this, ex); if (state.Owner != null && state.Trigger != null) { ParticipationController component = state.Owner.GetComponent <ParticipationController>(); if (component != null) { component.ForceStopParticipation(new ParticipationRequest(ParticipationRequest.Type.Stop, state.Trigger, "ActionSequencer")); } } } finally { removeSequencer(state); } }