예제 #1
0
 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;
 }
예제 #2
0
 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;
 }