private void OnDestroy() { UserInterfacePortManager.ReleaseUtils.Releases(ref mSprites_RewardMaterials); UserInterfacePortManager.ReleaseUtils.Release(ref mLabelTitle); UserInterfacePortManager.ReleaseUtils.Release(ref mLabelDescription); UserInterfacePortManager.ReleaseUtils.Release(ref mLabelFuelValue); UserInterfacePortManager.ReleaseUtils.Release(ref mLabelSteelValue); UserInterfacePortManager.ReleaseUtils.Release(ref mLabelAmmoValue); UserInterfacePortManager.ReleaseUtils.Release(ref mLabelBauxiteValue); UserInterfacePortManager.ReleaseUtils.Release(ref mLabelTitle); UserInterfacePortManager.ReleaseUtils.Release(ref mLabelTitle); UserInterfacePortManager.ReleaseUtils.Release(ref mLabelTitle); UserInterfacePortManager.ReleaseUtils.Release(ref mLabelTitle); mDutyStartButton = null; mDutyDetailActionCallBack = null; mDutyModel = null; mKeyController = null; }
public void SetDutyDetailCallBack(UIDutyDetailAction action) { mDutyDetailActionCallBack = action; }