Skip to content
Snippets Groups Projects
ToolModeText.cs 450 B
Newer Older
  • Learn to ignore specific revisions
  • 
    public class ToolModeText : MonoBehaviour
    {
        // Start is called before the first frame update
        void Start()
        {
            CommunicationEvents.ToolModeChangedEvent.AddListener(OnToolModeChanged);
        }
    
    
            //When ToolMode changes: Change Text of active gadget
    
            gameObject.GetComponentInChildren<UnityEngine.UI.Text>().text = GadgetBehaviour.gadgets[id].UiName;