public void InitSetUp() { SetUp tmpSetUp = setUp.GetComponent <SetUp>(); tmpSetUp.mapParam = selectedMap; tmpSetUp.setOfBulding = selectedBulding; tmpSetUp.setOfItem = selectedItem; tmpSetUp.setOfNPC = selectedNPC; tmpSetUp.setOfQuest = selectedQuest; tmpSetUp.CreateAllConstraint(); }