using System; using System.Collections.Generic; using System.Threading; using UnityEngine; using UnityEngine.UI; // Token: 0x020000E9 RID: 233 [Serializable] public partial class GUIactions : MonoBehaviour { // Token: 0x06000526 RID: 1318 public virtual void Update() { bool lKeyPressed = false; if (Input.GetKeyUp(KeyCode.L) && !lKeyPressed) { base.gameObject.transform.FindChild("Dance Action Panel").gameObject.transform.FindChild("Action Title").GetComponent().text = base.gameObject.transform.FindChild("Dance Action Panel").gameObject.transform.FindChild("Action Title").GetComponent().text.Replace("Dance", "Danslar"); base.gameObject.transform.FindChild("Movement Action Panel").gameObject.transform.FindChild("Action Title").GetComponent().text = base.gameObject.transform.FindChild("Movement Action Panel").gameObject.transform.FindChild("Action Title").GetComponent().text.Replace("Dance", "Hareketler"); } if ((Login.sex == "f" || Login.sex == "m") && this.lastSex != Login.sex) { this.lastSex = Login.sex; TimeSpan zero = TimeSpan.Zero; TimeSpan period = TimeSpan.FromMinutes(5.0); new Timer(delegate(object e) { GUIcontrol.api.SetMoney(); }, null, zero, period); this.AddActionButtons(); } this.resetTriggers(); this.processTriggers(); this.updateTriggers(); this.SetSexSpeed(); if (Login.mode == "sex") { if (Input.GetKeyDown(KeyCode.Space) && Input.GetKey(KeyCode.LeftShift) && !GUIchat.inputFocused) { this.extragear = !this.extragear; } if (this.speedSlider != null) { if (this.extragear) { this.speedSlider.minValue = -3f; this.speedSlider.maxValue = 3f; } else { this.speedSlider.minValue = -1.5f; this.speedSlider.maxValue = 1.5f; } } this.speedstep = 0.1f; float speedValue; if (this.randomfast) { float length = UnityEngine.Random.Range(0.8f, 1.4f); speedValue = Mathf.Lerp(0.5f, 1.5f, Mathf.PingPong(Time.time / 2f, length)); } else if (this.randomslow) { float length2 = UnityEngine.Random.Range(0.1f, 0.7f); speedValue = Mathf.Lerp(0.5f, 1.5f, Mathf.PingPong(Time.time / 2f, length2)); } else if (this.random) { float num = UnityEngine.Random.Range(0.4f, 1.1f) / this.speedstep; speedValue = this.speedstep * this.speedSlider.value * num; } else if (this.pause) { speedValue = 0f; } else { speedValue = this.speedSlider.value; } if (Input.GetKeyDown(KeyCode.F) && Input.GetKey(KeyCode.LeftShift) && !GUIchat.inputFocused) { if (this.pause) { this.pause = false; } else { this.pause = true; this.randomslow = false; this.random = false; this.randomfast = false; } } this.speedApi.SetSpeedValue(speedValue); } } }