public void SetEntity(Entity entity) { gameObject.SetActive(true); nowEntity = entity; nowText = EntityText.Load(entity.code); nameText.text = nowText.description; }
public void ClearEntity() { gameObject.SetActive(false); nowEntity = null; nowText = null; }