예제 #1
0
    public void RacerOut(BaseCar racer)
    {
        EffectsManager.CarKilled(racer);        // spawn an explosion
        racer.pDriver.isGhost = true;           // now make us into a ghost
        racer.pGhostControl.SetGhostMode(true);
        racer.BroadcastVisuals();
        Utils.ExplosionForce(racer.GetPosition(), 5, 30, explosionForceLayers);

        int pID = ItemManager.singleton.GetPrefabIDForName("mine");

        ItemManager.singleton.SpawnNewTempNetObject(pID, racer.GetPosition(), Quaternion.identity);
    }