// //////////////////////////////////////////////// State Array Setting... void SetStateArray() { mSttArr = new StateArray(); mSttArr.AddAMember("InitPurchase", 5f); mSttArr.AddEntryAction(() => { mCount = 1; }); mSttArr.AddExitCondition(() => { return(true); }); // !AgStt.mIAP.mIsUiLocked; }); mSttArr.AddTimeOutProcess(100f, () => { Application.LoadLevel("menu"); }); mSttArr.AddAMember("Purchasing", 3f); // mSttArr.AddExitCondition (() => { // //return !AgStt.mIAP.mSendPackBool.mIsStarted; // }); mSttArr.AddExitAction(() => { mCount = 1; }); mSttArr.AddTimeOutProcess(50f, () => { Application.LoadLevel("menu"); }); //mSttArr.AddAMember ("CheckFile", 2f); mSttArr.AddAMember("Rest", 0f); mSttArr.AddExitCondition(() => { return(false); }); mSttArr.SetSerialExitMember(pClose: false); mSttArr.SetStateWithNameOf("Rest"); }