改动与优化
This commit is contained in:
@@ -41,7 +41,7 @@ public class UI_Panel_Note : MonoBehaviour
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.Escape))
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
Close();
|
||||
}
|
||||
}
|
||||
private void Awake()
|
||||
@@ -51,7 +51,13 @@ public class UI_Panel_Note : MonoBehaviour
|
||||
}
|
||||
void Close()
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
UI_PanelExitUtility.PlayExitThen(gameObject, () =>
|
||||
{
|
||||
if (gameObject != null)
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
private void Start()
|
||||
{
|
||||
@@ -170,6 +176,7 @@ public class UI_Panel_Note : MonoBehaviour
|
||||
Character_Data_SO item = data_List[i];
|
||||
UI_Button_Character btn = null;
|
||||
btn = Add_Select_Button(item, type_Index >= 2);
|
||||
UI_OrderedEntryAnimator.PlayFadeOnly(btn.gameObject, i, 0.16f, 0.014f, true);
|
||||
if (i == 0)
|
||||
{
|
||||
btn.Init();
|
||||
@@ -217,6 +224,7 @@ public class UI_Panel_Note : MonoBehaviour
|
||||
text_Only.gameObject.SetActive(true);
|
||||
transform_Description_Content.gameObject.SetActive(false);
|
||||
text_Only.text = item.data.personalityDescription;
|
||||
UI_OrderedEntryAnimator.PlayRefresh(text_Only.gameObject, 0.14f, -6f, 0.99f, true);
|
||||
}
|
||||
public void Set_Character_Description(Character_Data_SO item)
|
||||
{
|
||||
@@ -235,5 +243,6 @@ public class UI_Panel_Note : MonoBehaviour
|
||||
text_Character_Data.text = data.data.registrationDate;
|
||||
text_Character_Description.text = data.data.personalityDescription;
|
||||
scrollbar_Character_Description.value = 1;
|
||||
UI_OrderedEntryAnimator.PlayRefresh(transform_Description_Content.gameObject, 0.14f, -6f, 0.99f, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user