// //////////////////////////////////////////////// Action !!! public void DoAction() { // Set Variable Objects.. if (!mCurState.mDidExecute_Entry) { int num = arrVar.Count; for (int i = 0; i < num; i++) { AgVariable curVar = arrVar [i]; curVar.SetValueBy(mCurState.mName); } for (int i = 0; i < num; i++) { AgVariable curVar = arrVar [num - i - 1]; if (curVar.IsItClearStage(mCurState.mName)) { arrVar.RemoveAt(i); } } } mCurState = (StateGame)mCurState.Action(); if (mCurState != null) { if (!mCurState.mDidExecute_Entry) // [2012:10:15:MOON] XXX { mCurState = (StateGame)mCurState.Action(); } } }
// _////////////////////////////////////////////////_ _____ Do _____ Action _____ public void DoAction() { if (arrState == null || arrState.Count == 0) { Ag.LogDouble(" HtStateArray :: Error .. no State"); return; } // Set Variable Objects.. if (!mCurState.mDidExecute_Entry) { int num = arrVar.Count; for (int i = 0; i < num; i++) { AgVariable curVar = arrVar [i]; curVar.SetValueBy(mCurState.mName); } for (int i = 0; i < num; i++) { AgVariable curVar = arrVar [num - i - 1]; if (curVar.IsItClearStage(mCurState.mName)) { arrVar.RemoveAt(i); } } } mCurState = (StateGame)mCurState.Action(); if (mCurState != null) { if (!mCurState.mDidExecute_Entry) // [2012:10:15:MOON] XXX { mCurState = (StateGame)mCurState.Action(); } } }