提交修改

This commit is contained in:
Bob.Song
2026-03-06 09:44:00 +08:00
parent e125bb869e
commit db7bc90fe2
3631 changed files with 9050 additions and 395938 deletions

View File

@@ -1,41 +0,0 @@
using UnityEngine;
using FairyGUI;
public class MailItem : GButton
{
GTextField _timeText;
Controller _readController;
Controller _fetchController;
Transition _trans;
public override void ConstructFromXML(FairyGUI.Utils.XML cxml)
{
base.ConstructFromXML(cxml);
_timeText = this.GetChild("timeText").asTextField;
_readController = this.GetController("IsRead");
_fetchController = this.GetController("c1");
_trans = this.GetTransition("t0");
}
public void setTime(string value)
{
_timeText.text = value;
}
public void setRead(bool value)
{
_readController.selectedIndex = value ? 1 : 0;
}
public void setFetched(bool value)
{
_fetchController.selectedIndex = value ? 1 : 0;
}
public void PlayEffect(float delay)
{
this.visible = false;
_trans.Play(1, delay, null);
}
}