void Update() { if (!positionsUpdated) { return; } if (player.GetAxis("VER") > 0.1f && player.GetAxisPrev("VER") < 0.1f) { if (index == count - 1) { content.localPosition += new Vector3(0, 50, 0); } index = Mathf.Min(index + 1, count - 1); onFocus.Invoke(playerId, index); } if (player.GetAxis("VER") < -0.1f && player.GetAxisPrev("VER") > -0.1f) { if (index == 0) { content.localPosition += new Vector3(0, -50, 0); } index = Mathf.Max(index - 1, 0); onFocus.Invoke(playerId, index); } content.localPosition += 0.1f * new Vector3(0, contentPositions[index] - content.localPosition.y, 0); }
public void BeginInput() { InputStart = TextLines.Length; InputText = ""; TextReadOnly = false; FocusEvent?.Invoke(); }
/// <summary> /// Fires Focus event /// </summary> private void Focus() { FocusEvent?.Invoke(); }
public void Focus() { FocusEvent?.Invoke(); }