public static void HideHint(StandardizedVRInput.InputType action, SteamVR_Input_Sources forHand) { if (forHand == SteamVR_Input_Sources.Any) { action2hintLeft[action].element.Hide(); action2hintRight[action].element.Hide(); } else if (forHand == SteamVR_Input_Sources.LeftHand) { action2hintLeft[action].element.Hide(); } else if (forHand == SteamVR_Input_Sources.RightHand) { action2hintRight[action].element.Hide(); } }
public static void ShowHint(StandardizedVRInput.InputType action, SteamVR_Input_Sources forHand, string text) { if (forHand == SteamVR_Input_Sources.Any) { action2hintLeft[action].element.Show(text); action2hintRight[action].element.Show(text); } else if (forHand == SteamVR_Input_Sources.LeftHand) { action2hintLeft[action].element.Show(text); } else if (forHand == SteamVR_Input_Sources.RightHand) { action2hintRight[action].element.Show(text); } }