public void initNPC(GDENPCData data) { //type = SDConstants.ItemType.NPC; itemId = data.id; itemHashcode = data.hashcode; //if(downText)downText.text = }
public override void initTimeTask(GDEtimeTaskData task) { base.initTimeTask(task); GDENPCData slave = SDDataManager.Instance.GetNPCOwned(task.itemHashcode); if (slave != null) { int lv = SDDataManager.Instance.getLevelByExp(slave.exp); int like = SDDataManager.Instance.getLikeByLikability (slave.likability, out float rate); NPCMessage.text = lv + "·" + like; } }