using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; public class Touch_MobObject : MonoBehaviour { public int SpawnerID; public bool Touch_Far = false; public TextMeshPro text_lv; private void Start() { if (text_lv) text_lv.text = DSUtil.Format("Lv.{0}", table_monsterappear.Ins.Get_Data_orNull(SpawnerID).n_AppearMonsterLv); } private void OnCollisionEnter(Collision collision) { //if (Touch_Far) //{ // ToastUI.Ins.Set(SpawnerID + " 몬스터가 젠 됩니다."); // MobInfo.Ins.LoadMobs(SpawnerID, transform.position); //} //else // Popup.Ins.Set(ePopupType.Two, SpawnerID + " 몬스터를 빠르게 젠 할까요?", () => // { // MobInfo.Ins.LoadMobs(SpawnerID, transform.position, 4f); // }); } }