// edit private void OnClickEditWorldButton(WorldListItemView item) { OnCloseCreateModal(); var world = gameProgress.WorldList[item.worldId]; view.editWorldModal.Init( worldId: world.Id.Value, worldName: world.Name.Value, worldSeed: world.Seed.Value.Base.ToString() ); view.editWorldModal.SetEnabled(true); }
// delete private void OnClickDeleteWorldButton(WorldListItemView item) { gameProgress.WorldList.Remove(item.worldId); }
// join private void OnClickJoinWorldButton(WorldListItemView item) { gameProgress.JoinWorld(item.worldId); SceneManager.LoadScene("World"); }