Esempio n. 1
0
    public void OnPointerClick(PointerEventData eventData)
    {
        BattleSFXController bsfx = FindObjectOfType <BattleSFXController>();

        if (!bsfx)
        {
            return;
        }
        bsfx.playSelectAction();
    }
Esempio n. 2
0
    public void onClick()
    {
        BattleSFXController battleSpeaker = FindObjectOfType <BattleSFXController>();

        if (!battleSpeaker)
        {
            Debug.LogWarning("バトルスピーカーどっかやった");
            return;
        }
        battleSpeaker.playCancelAction();
        timeline.removeAction(hashCode);
    }
Esempio n. 3
0
    public void showButton()
    {
        if (item.isPassiveItem)
        {
            return;
        }
        if (isUsed)
        {
            return;
        }
        button.gameObject.SetActive(true);
        BattleSFXController battleSpeaker = FindObjectOfType <BattleSFXController>();

        if (!battleSpeaker)
        {
            Debug.LogWarning("バトルスピーカーどっかやった");
            return;
        }
        battleSpeaker.playSelectAction();
    }