26 lines
621 B
C#
26 lines
621 B
C#
using asap.core;
|
|
using Coffee.UIExtensions;
|
|
using Game;
|
|
using UnityEngine;
|
|
using UnityEngine.AddressableAssets;
|
|
|
|
public class GameClickEffect : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private UIParticle uiParticle;
|
|
|
|
//[SerializeField]
|
|
//private AssetReferenceT<AudioClip> assetReference;
|
|
|
|
void Update()
|
|
{
|
|
if (uiParticle != null && Input.GetMouseButtonDown(0))
|
|
{
|
|
uiParticle.rectTransform.position = Input.mousePosition;
|
|
uiParticle.Stop();
|
|
uiParticle.Play();
|
|
//GContext.Publish(new AssetReferenceAudioClip(assetReference));
|
|
}
|
|
}
|
|
}
|