// Token: 0x0600156A RID: 5482 RVA: 0x000784A4 File Offset: 0x000766A4 public void ReadPlayerPrefs(string pref) { byte[] bytes = Encoding.ASCII.GetBytes(WWW.UnEscapeURL(pref, Encoding.ASCII)); using (MemoryStream memoryStream = new MemoryStream(bytes)) { switch (ByteProxy.Deserialize(memoryStream)) { case 0: this.Channel = KeyInputChannel.FromBytes(memoryStream); break; case 1: this.Channel = MouseInputChannel.FromBytes(memoryStream); break; case 2: this.Channel = AxisInputChannel.FromBytes(memoryStream); break; case 3: this.Channel = ButtonInputChannel.FromBytes(memoryStream); break; } } }
// Token: 0x06001393 RID: 5011 RVA: 0x00071570 File Offset: 0x0006F770 public override bool Equals(object obj) { if (obj is MouseInputChannel) { MouseInputChannel mouseInputChannel = obj as MouseInputChannel; if (mouseInputChannel.Button == this.Button) { return(true); } } return(false); }