// 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: 0x06001384 RID: 4996 RVA: 0x000714F0 File Offset: 0x0006F6F0 public override bool Equals(object obj) { if (obj is KeyInputChannel) { KeyInputChannel keyInputChannel = obj as KeyInputChannel; if (keyInputChannel.Key == this.Key) { return(true); } } return(false); }