public void OnPointerClick(PointerEventData eventData) { BattleSFXController bsfx = FindObjectOfType <BattleSFXController>(); if (!bsfx) { return; } bsfx.playSelectAction(); }
public void onClick() { BattleSFXController battleSpeaker = FindObjectOfType <BattleSFXController>(); if (!battleSpeaker) { Debug.LogWarning("バトルスピーカーどっかやった"); return; } battleSpeaker.playCancelAction(); timeline.removeAction(hashCode); }
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(); }