Ejemplo n.º 1
0
    // 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: 0x060013B5 RID: 5045 RVA: 0x000717BC File Offset: 0x0006F9BC
 public override bool Equals(object obj)
 {
     if (obj is ButtonInputChannel)
     {
         ButtonInputChannel buttonInputChannel = obj as ButtonInputChannel;
         if (buttonInputChannel.Button == this.Button)
         {
             return(true);
         }
     }
     return(false);
 }