Exemplo n.º 1
0
    public static void Remove(PersistentKSPShurikenEmitter pkpe)
    {
        FloatingOrigin.UnregisterParticleSystem(pkpe.pe);
        persistentEmittersShuriken.Remove(pkpe);

        Log.dbg("Removed 1 PersistentKSPParticleEmitter. Count = {0}", persistentEmittersShuriken.Count);
    }
    public static void Remove(PersistentKSPShurikenEmitter pkpe)
    {
        FloatingOrigin.UnregisterParticleSystem(pkpe.pe);
        persistentEmittersShuriken.Remove(pkpe);

        //print("[SmokeScreen PersistentEmitterManager]: Removed 1 PersistentKSPParticleEmitter. Count = " + persistentEmitters.Count);
    }
Exemplo n.º 3
0
    private void OnSceneChange(GameScenes scene)
    {
        for (int i = 0; i < persistentEmittersShuriken.Count; i++)
        {
            FloatingOrigin.UnregisterParticleSystem(persistentEmittersShuriken[i].pe);

            if (persistentEmittersShuriken[i].go != null && persistentEmittersShuriken[i].go.transform.parent != null)
            {
                Destroy(persistentEmittersShuriken[i].go);
            }
        }
        persistentEmittersShuriken.Clear();
    }