コード例 #1
0
    IEnumerator PlaySystemThenStopAfterTime(float playTime, List <ParticleSystem> ps1)
    {
        ParticleSystemPlayer.PlayChildParticleSystems(ps1);
        yield return(new WaitForSeconds(playTime));

        ParticleSystemPlayer.StopChildParticleSystems(ps1);
    }
コード例 #2
0
 void TracksStoppedDropping()
 {
     //this is to give some buffer space between track dropping -- the soul can't be used for anything else.
     droppingTrack = false;
     ParticleSystemPlayer.StopChildParticleSystems(trackDropParticles);
     pReference.playerSoulHandler.Depowered();
 }
コード例 #3
0
    IEnumerator PlayLoopingStopThenPlayOneshot(float playTime, List <ParticleSystem> ps1, List <ParticleSystem> ps2)
    {
        ParticleSystemPlayer.PlayChildParticleSystems(ps1);
        yield return(new WaitForSeconds(playTime));

        ParticleSystemPlayer.StopChildParticleSystems(ps1);
        ParticleSystemPlayer.PlayChildParticleSystems(ps2);
    }
コード例 #4
0
    public void DimSwitches()
    {
        ParticleSystemPlayer.StopChildParticleSystems(tearBackground);

        foreach (Transform child in gameStateHandler.switchHolder.transform)
        {
            child.GetComponent <Switch>().DimSwitchParticles();
            //TODO: FAde this --->  child.GetComponent<SpriteRenderer>();
        }
    }
コード例 #5
0
 void StopSystem(List <ParticleSystem> ps1)
 {
     playingPlayerAura = false;
     ParticleSystemPlayer.StopChildParticleSystems(ps1);
 }
コード例 #6
0
 void PlayFinalExplosionParticles()
 {
     ParticleSystemPlayer.StopChildParticleSystems(starTooBigParticles);
     ParticleSystemPlayer.PlayChildParticleSystems(UltraNovaParticles);
     ParticleSystemPlayer.PlayChildParticleSystems(UltraNovaTwoParticles);
 }
コード例 #7
0
 void PlayTooLargeSystem()
 {
     ParticleSystemPlayer.StopChildParticleSystems(standardStarParticles);
     ParticleSystemPlayer.PlayChildParticleSystems(starTooBigParticles);
 }