protected virtual void Start() { InputFieldCensorship inputFieldCensorship = this; // ISSUE: method pointer inputFieldCensorship.set_onValidateInput((InputField.OnValidateInput)System.Delegate.Combine((System.Delegate)inputFieldCensorship.get_onValidateInput(), (System.Delegate) new InputField.OnValidateInput((object)this, __methodptr(MyValidate)))); }
protected virtual void Start() { ((UIBehaviour)this).Start(); InputFieldCensorship inputFieldCensorship = this; // ISSUE: method pointer inputFieldCensorship.set_onValidateInput((InputField.OnValidateInput)System.Delegate.Combine((System.Delegate)inputFieldCensorship.get_onValidateInput(), (System.Delegate) new InputField.OnValidateInput((object)this, __methodptr(\u003CStart\u003Em__1CA)))); this.mCharacterLimit = this.get_characterLimit(); if (this.get_characterValidation() == 4) { this.set_characterLimit(12); } else { this.set_characterLimit(1024); } }
private void OnSetSendMessage(InputFieldCensorship field) { if (string.IsNullOrEmpty(this.InputFieldMessage.get_text())) { return; } int currentChatChannel = (int)GlobalVars.CurrentChatChannel; string message = this.InputFieldMessage.get_text(); if (message.Length > this.CharacterLimit) { message = message.Substring(0, this.CharacterLimit); } FlowNode_SendChatMessage component = (FlowNode_SendChatMessage)((Component)this).get_gameObject().GetComponent <FlowNode_SendChatMessage>(); if (!Object.op_Inequality((Object)component, (Object)null)) { return; } component.SetMessageData(currentChatChannel, message); }