public void FormationEnd() { if (Evt_PreludeEnd != null) { Evt_PreludeEnd -= FormationEnd; } UnityEngine.Resources.UnloadUnusedAssets(); }
private void Clear() { EvtBackStart = null; //返回主界面 EvtGameStart = null; //游戏开始 EvtSceneSelect = null; //选择场景 EvtHelp = null; //帮助 EvtRank = null; //排行榜 EvtWikipedia = null; //百科 EvtJiaocheng = null; //新手教程 EvtSetting = null; //设置 EvtAchievement = null; //成就 EvtRecharge = null; //充值 EvtShop = null; //商店 EvtRechState = null; //充值方式 EvtLevelUP = null; //升级 EvtEveryDayReward = null; //每日奖励 }
public static void Main(string[] args) { Event_Generic objTest = new Event_Generic(); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(objTest.AppDomainUnhandledException_EventHandler); Console.WriteLine(s_strTFPath + " " + s_strTFName + " , for " + s_strClassMethod + " , Source ver : " + s_strDtTmVer); try { objTest.RunTest(); } catch (Exception e) { Console.WriteLine(s_strTFAbbrev + " : FAIL The following exception was thorwn in RunTest(): \n" + e.ToString()); objTest._numErrors++; objTest._exitValue = TCSupport.FailExitCode; } //// Finish Diagnostics if (objTest._numErrors == 0) { Console.WriteLine("PASS. "+ s_strTFPath + " " + s_strTFName + " ,numTestcases==" + objTest._numTestcases); } else { Console.WriteLine("FAIL! "+ s_strTFPath + " " + s_strTFName + " ,numErrors==" + objTest._numErrors); if (TCSupport.PassExitCode == objTest._exitValue) { objTest._exitValue = TCSupport.FailExitCode; } } Environment.ExitCode = objTest._exitValue; }
/// <summary> /// 回收 /// </summary> public void On_Recycle() { gameObject.SetActive(false); EvtDisappear = null; EvtRoleToHead = null; }
/// <summary> /// ���� /// </summary> public void On_Recycle() { gameObject.SetActive(false); EvtDisappear = null; EvtRoleToHead = null; }
void Awake() { Evt_PreludeEnd += FormationEnd; }