示例#1
0
    internal void Activate()
    {
        button = GetComponent <Button>();
        button.interactable = true;

        ihs         = GetComponentInChildren <ImageHoverScaler>();
        ihs.enabled = false;
    }
示例#2
0
    internal void Deactivate()
    {
        button = GetComponent <Button>();
        button.interactable = false;

        // TODO: This won't work if this is the one I have clicked on

        ihs         = GetComponentInChildren <ImageHoverScaler>();
        ihs.enabled = false;
    }
示例#3
0
    private void Start()
    {
        UpdateHealthBar();

        ihs = GetComponent <ImageHoverScaler>();
    }