引入 UISerializationRoot 和 Item
- 完成 MenuForm 和 SelectRoleForm 的迁移
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
namespace SepCore.UI
|
||||
{
|
||||
public partial class ShowAreaForm
|
||||
{
|
||||
public void ShowRandomRole()
|
||||
{
|
||||
View.randomRoleCardObject.gameObject.SetActive(true);
|
||||
View.roleCardObject.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
public void ShowRoleProperty(ShowAreaContext context)
|
||||
{
|
||||
View.roleNameText.text = context.RoleName;
|
||||
View.initialPropertyText.text = context.InitialPropertyText;
|
||||
|
||||
View.randomRoleCardObject.gameObject.SetActive(false);
|
||||
View.roleCardObject.gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user