修改变量
This commit is contained in:
parent
603752a380
commit
0cf030aca0
@ -20,26 +20,26 @@ public class EventSystem : MonoBehaviour
|
|||||||
moveTime += data.Event1;
|
moveTime += data.Event1;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
pointsRatio += data.Event1;
|
points += data.Event1;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
var intSpeed0 = (float)speed * (((float)data.Event1) / 100);
|
var intSpeed0 = (float)speed * (((float)data.Event1) / 100);
|
||||||
speed -= (int)intSpeed0;
|
speed -= (int)intSpeed0;
|
||||||
points += data.Event2;
|
pointsRatio += data.Event2;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
var intSpeed1 = (float)speed * (((float)data.Event1) / 100);
|
var intSpeed1 = (float)speed * (((float)data.Event1) / 100);
|
||||||
speed -= (int)intSpeed1;
|
speed -= (int)intSpeed1;
|
||||||
pointsRatio += data.Event2;
|
points += data.Event2;
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
moveTime -= data.Event1;
|
moveTime -= data.Event1;
|
||||||
points += data.Event2;
|
pointsRatio += data.Event2;
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
moveTime -= data.Event1;
|
moveTime -= data.Event1;
|
||||||
pointsRatio += data.Event2;
|
points += data.Event2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user