|
@@ -9,6 +9,7 @@ namespace UI.Card
|
|
public GComponent target;
|
|
public GComponent target;
|
|
public GButton m_btnback;
|
|
public GButton m_btnback;
|
|
public GComponent m_comValueBar;
|
|
public GComponent m_comValueBar;
|
|
|
|
+ public GButton m_btnStarReward;
|
|
public const string URL = "ui://7l6lvkayj4c69e";
|
|
public const string URL = "ui://7l6lvkayj4c69e";
|
|
public const string PACKAGE_NAME = "Card";
|
|
public const string PACKAGE_NAME = "Card";
|
|
public const string RES_NAME = "ComFosterTop";
|
|
public const string RES_NAME = "ComFosterTop";
|
|
@@ -58,11 +59,13 @@ namespace UI.Card
|
|
{
|
|
{
|
|
m_btnback = (GButton)comp.GetChild("btnback");
|
|
m_btnback = (GButton)comp.GetChild("btnback");
|
|
m_comValueBar = (GComponent)comp.GetChild("comValueBar");
|
|
m_comValueBar = (GComponent)comp.GetChild("comValueBar");
|
|
|
|
+ m_btnStarReward = (GButton)comp.GetChild("btnStarReward");
|
|
}
|
|
}
|
|
public void Dispose(bool disposeTarget = false)
|
|
public void Dispose(bool disposeTarget = false)
|
|
{
|
|
{
|
|
m_btnback = null;
|
|
m_btnback = null;
|
|
m_comValueBar = null;
|
|
m_comValueBar = null;
|
|
|
|
+ m_btnStarReward = null;
|
|
if(disposeTarget && target != null)
|
|
if(disposeTarget && target != null)
|
|
{
|
|
{
|
|
target.RemoveFromParent();
|
|
target.RemoveFromParent();
|