private void UpdateSelectedIndex() { verticalValue = StaticMethode.CheckButtonDownByPlayerNumber("Vertical", 0); if (verticalValue != 0) { tabMode[indexSelected].color = listColor[indexSelected]; this.indexSelected = StaticMethode.mod(this.indexSelected - verticalValue, this.tabMode.Length); this.fadeAnimation.Reset(listColor[indexSelected]); } }
private void CheckKeyPressed() { if (Input.GetButtonDown("Vertical0")) { this.indexSelectedMenu = StaticMethode.mod(this.indexSelectedMenu - Mathf.FloorToInt(Input.GetAxisRaw("Vertical0")), this.listMenuText.Count); InitAnimation(); } if (Input.GetButtonDown("A0")) { this.ItemSelected(this.indexSelectedMenu); } }
/** * This methode updates the xCharacterSelected value when the player is choosing his/her character */ public void UpdateY(float value, int yMax) { this.yCharacterSelected = StaticMethode.mod((this.yCharacterSelected + Mathf.FloorToInt(value)), yMax); //Debug.Log(yCharacterSelected); }