My code:
Code: Select all
private void GiveAwardByAngle()
{
// Here you can set up rewards for every sector of wheel
switch ((int)_startAngle)
{
case 0:
RewardStars(1);
StartScriptCameraSwitch.enabled = true;
StartScriptCameraSwitch.StartSwitchCameras();
break;
case -300:
RewardCoins(100);
break;
case -240:
RewardCoins(0);
break;
case -180:
RewardCoins(50);
break;
case -120:
RewardCoins(100);
break;
case -60:
RewardCoins(50);
break;
default:
RewardCoins(0);
break;
}
}