备份CatanBuilding瘦身独立工程
This commit is contained in:
25
Assets/Scripts/Others/GameClickEffect.cs
Normal file
25
Assets/Scripts/Others/GameClickEffect.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user