23 lines
512 B
C#
23 lines
512 B
C#
using GUPS.AntiCheat.Protected;
|
|
using UnityEngine;
|
|
|
|
public class LuckyGameObj : MonoBehaviour
|
|
{
|
|
ProtectedInt32 m_Amount;
|
|
|
|
public void Init(Vector3 pos)
|
|
{
|
|
m_Amount = 1; m_Amount.Obfuscate();
|
|
transform.localPosition = pos;
|
|
}
|
|
|
|
private void OnCollisionEnter2D(Collision2D collision)
|
|
{
|
|
if (collision == null) return;
|
|
|
|
if (collision.collider.tag == "Player")
|
|
{ // 재화 획득
|
|
LobbyUI.Ins.m_Game_Lucky.Add_Amount(m_Amount);
|
|
}
|
|
}
|
|
} |