i ahve lsit of EECcar compoentns its have speeed varibel i wanna gave 2 voids its must…
Jump to turn (11)
- 1i ahve lsit of EECcar compoentns its have speeed varibel i wanna gave 2 voids it
- 2i need implementation of ResetSpeed() in that scriptt not in car i mean private
- 3replace private Dictionary originalSpeeds = new Dictionary (); with list
- 4i wanna small answee i need coroutine to make sliderr go from 0 to 1 for 2 secon
- 5i have voxell world - its like default 1 1 1 lossysclae cub its world have mesh
- 6yeaa what if i use shade grapp and modify mesh by it for example scale if its ha
- 7is there way rebake meshcolliderr to current mesh lloks by shade grapp deforms?
- 8i wanna scriptt for custom characte controllethat have only rigidbo and capsule
- 9add gizmoo voids, i need only that vodis in yourr answerr
- 10i alsoo wanna hcangee gizmoo colror if ray detectt voxell and if not detectt
- 11i neeed scriptt to interpoclate voxell mesh to more nice lookin i mean its must
- User
i ahve lsit of EECcar compoentns
its have speeed varibel
i wanna gave 2 voids
its must affect all existed EECcar that have bool local == false
2 voids 1 increase speed
2 decrease speed to original normal
maybe u should use list of bools and list of EECcar
short answe only voids fixedd and varaibles
codeprivate void StartEvent() {FindObjectOfType<ECC>().alert.text=eventwarning; eventRunning = true; List<ECCCar> cars = new List<ECCCar>(FindObjectsOfType<ECCCar>()); foreach (var car in cars) { if (!car.local) { float multiplier = Random.Range(speedMultiplierRange.x, speedMultiplierRange.y) / 100f; MultiplySpeed(car,multiplier); } } float nextEventTime = Random.Range(eventActivateIntervalRange.x, eventActivateIntervalRange.y); Invoke(nameof(StartEvent), nextEventTime);ScheduleNextEvent(); // Schedule the next event } private void StopEvent() { eventRunning = false; foreach (var car in affectedCars) { car.ResetSpeed(); // Reset speeds to normal } affectedCars.Clear(); }