//@ All walking unit states are 100% synchronized. static void SetStatus_UnitWalking(e_navistate eStateObj) { _eStateNaviUnitWalking = eStateObj; switch (eStateObj) { case e_navistate.navistate_celltocell: { SetVisibilityMove(false); _bProcessWalking_Static = true; } break; case e_navistate.navistate_celltosight: { SetVisibilityMove(true); UnitWalking._bProcessWalking_Static = true; } break; case e_navistate.navistate_stop: { UnitWalking._bProcessWalking_Static = true; } break; default: { } break; } }
//@ Switching STATUS OBJECT navistate_stop to OBJ_STATE_NAVI. public static bool SetStatus_UnitWalking_switching() { e_navistate eStatusObjCur = (e_navistate)((((int)_eStateNaviUnitWalking) + 1) % ((int)e_navistate.navistate_end)); if (e_navistate.navistate_celltocell == eStatusObjCur) { eStatusObjCur = (e_navistate)(((int)_eStateNaviUnitWalking + 1) % (int)(e_navistate.navistate_end)); } _eStateNaviUnitWalking = eStatusObjCur; return true; }