This singleton class manages the enabling and disabling of controller tooltips. These tooltips mostly appear and disappear during the tutorial, and assist in guiding the player to the appropriate controller button.
TooltipManager
prefab from Assets/Prefabs/Managers
and place it onto the scene.EnableIndividualControllerTooltip(int index)
. For the parameter, use the public enum Buttons
which currently has 5 available buttons to toggle the tooltips of. TooltipManager.instance.doPublicMethod((int)Buttons.WhateverButtonToToggle)
This public enum can be used by other scripts as long as TooltipManager
is on the same scene.
These are the current 5 enumerations:
Warning! When using the enum, you must "cast" it as an int
by having (int) in front of the enum.
For ex)
(int)Buttons.Touchpad
would be correct, while
Buttons.Touchpad
alone would be incorrect!