public static CHanMgr GetInstance() { if (null == mpInstance) { mpInstance = new CHanMgr(); } return(mpInstance); }
public void CompareBoxtoCat(CATTYPE tBoxType) { if (((CATTYPE)mCatNum) == tBoxType) { CHanMgr.GetInstance().AddCount(); mTxtCount.text = CHanMgr.GetInstance().GetCount().ToString(); } }
private CHanMgr() { mpInstance = null; }