Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class StatAllocationModule {
- private string[] statNames = new string[6] {"Stamina", "Wytrzymałość", "Intelekt", "Siła", "Zwinność", "Odporność"};
- private string[] statDescriptions = new string[6] {"Modyfikator Życia", "Modyfikator Energii", "Modyfikator Siły Magicznej", "Modyfikator Siły Fizycznej", "Modyfikator Ciosów Krytycznych i Szybkości Ataku", "Modyfikator Odporności na Obrażenia"};
- private bool[] statSelections = new bool[6];
- public void DisplayStatAllocationModule(){
- DisplayStatToggleSwithes();
- }
- private void DisplayStatToggleSwithes(){
- for (int i = 0; i < statNames.Length; i++) {
- statSelections [i] = GUI.Toggle (new Rect (10, 60 * i + 10, 100, 50), statSelections [i], statNames [i]);
- }
- }
- private void DisplayStatDescriptions(bool[] statSelections) {
- if (statSelections [0]) {
- GUI.Label (new Rect (0, 0, 0, 0), statDescriptions [0]);
- }
- }
- }
Add Comment
Please, Sign In to add comment