清理无用素材
This commit is contained in:
@@ -37,13 +37,13 @@ namespace SepCore.UI
|
||||
public bool ConfirmSelectedRole()
|
||||
{
|
||||
var roles = GameEntry.Luban.GetTable<RoleConfig>();
|
||||
var config = GameEntry.Luban.Get<RoleConfig>(SelectedRoleName);
|
||||
if (string.IsNullOrEmpty(SelectedRoleName) || config == null)
|
||||
|
||||
if (string.IsNullOrEmpty(SelectedRoleName))
|
||||
{
|
||||
int randomIndex = Random.Range(0, roles.Count);
|
||||
SelectedRoleName = roles[randomIndex].Name;
|
||||
}
|
||||
|
||||
|
||||
_procedureMenu.ConfirmSelectRole(SelectedRoleName);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user