private long[] mHits = new long[3];//该代码放在成员变量上,长度变量为连击次数 /** 三连击 */ public void threeCombo() { if (Constant.DEBUG) { System.arraycopy(mHits, 1, mHits, 0, mHits.length - 1); mHits[mHits.length - 1
/** 三连击 */
public void threeCombo() {
if (Constant.DEBUG) {
System.arraycopy(mHits, 1, mHits, 0, mHits.length - 1);
mHits[mHits.length - 1] = SystemClock.uptimeMillis();
if (mHits[0] >= (SystemClock.uptimeMillis() - 500)) {
tip("连接服务器地址:" + CallWebService.ROOT_URL + "\n版本名称:" + AppUtil.get().getAppVersionName());
}
}
}