public void SetInfo(CampsiteUI campUi, int dropNum) { m_CampUI = campUi; if (m_DropNum == 0) { RedHeartClick iconBtn = transform.Find(IconBtnName).gameObject.AddComponent <RedHeartClick>(); iconBtn.RespondClick = RespondClick; } m_DropNum = dropNum; }
public void SetInfo(NpcBehavior npcBehavior, int dropNum) { m_NpcBehavior = npcBehavior; if (m_DropNum == 0) { RedHeartClick iconBtn = transform.Find(IconBtnName).gameObject.AddComponent <RedHeartClick>(); iconBtn.RespondClick = RespondClick; } m_DropNum = dropNum; }