修改变量

This commit is contained in:
DESKTOP-DDTRVOR\asus 2024-12-28 15:23:44 +08:00
parent 603752a380
commit 0cf030aca0

View File

@ -20,26 +20,26 @@ public class EventSystem : MonoBehaviour
moveTime += data.Event1;
break;
case 3:
pointsRatio += data.Event1;
points += data.Event1;
break;
case 4:
var intSpeed0 = (float)speed * (((float)data.Event1) / 100);
speed -= (int)intSpeed0;
points += data.Event2;
pointsRatio += data.Event2;
break;
case 5:
var intSpeed1 = (float)speed * (((float)data.Event1) / 100);
speed -= (int)intSpeed1;
pointsRatio += data.Event2;
points += data.Event2;
break;
case 6:
moveTime -= data.Event1;
points += data.Event2;
pointsRatio += data.Event2;
break;
case 7:
moveTime -= data.Event1;
pointsRatio += data.Event2;
points += data.Event2;
break;
}
}