修改变量
This commit is contained in:
parent
603752a380
commit
0cf030aca0
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user