Пример #1
0
    void OnTriggerEnter(Collider other)
    {
        PowerupManager powerupManager = other.GetComponent <PowerupManager>();

        if (powerupManager)
        {
            VehicleController_V2 vehicle = other.GetComponent <VehicleController_V2>();
            vehicle.StartCoroutine(vehicle.DisableVehicle(disableDuration));

            StartCoroutine(CleanUp());
        }
    }