// Use this for initialization void Start() { _text = StaticData.Book; _previous = SetingsData.Previous; _next = SetingsData.Next; _bigPrevious = SetingsData.BigPrevious; _bigNext = SetingsData.BigNext; UpperUI.transform.rotation = Quaternion.Euler(0, 0, SetingsData.TextPosition); LowerUI.transform.rotation = Quaternion.Euler(0, 0, SetingsData.TextPosition); UpperCamera.backgroundColor = SetingsData.BackgroundColour; LowerCamera.backgroundColor = SetingsData.BackgroundColour; UpperTextLink.color = SetingsData.TextColour; LowerTextLink.color = SetingsData.TextColour; CurrPage.color = SetingsData.TextColour; Time.color = SetingsData.TextColour; UpperTextLink.fontSize = SetingsData.FontSize; LowerTextLink.fontSize = SetingsData.FontSize; isRight = true; if (SetingsData.TextPosition != 0) { isRight = false; } _upNumber = StaticData.Progress[StaticData.CurrPage]; _lowNumber = (short)(_upNumber + 1); SetPages(); CurrPage.text = string.Format("{0} - {1} - {2}", _upNumber + 1, _text.Count - 1, _lowNumber + 1); }
private void Label(ref int xpos, ref int ypos, N3dsButton button) { string text = button.ToString(); if (UnityEngine.N3DS.GamePad.GetButtonHold(button)) { text += " *"; } GUI.Label(new Rect(xpos, ypos, width, height), text); ypos += height + spacing; }