示例#1
0
 private void StopAllLaunchers()
 {
     for (int i = 0; i < 8; ++i)
     {
         GameObject launcher_go = launchers[i];
         if (launcher_go.GetComponent(typeof(CustomizationSceneLauncher)))
         {
             CustomizationSceneLauncher launcher_script = ( CustomizationSceneLauncher )launcher_go.GetComponent(typeof(CustomizationSceneLauncher));
             launcher_script.StopParticleSystem();
         }
     }
 }
示例#2
0
 private void InitializeFireworkLaunchers()
 {
     for (int i = 0; i < 8; ++i)
     {
         GameObject launcher_go = launchers[i];
         if (launcher_go.GetComponent(typeof(CustomizationSceneLauncher)))
         {
             CustomizationSceneLauncher launcher_script = ( CustomizationSceneLauncher )launcher_go.GetComponent(typeof(CustomizationSceneLauncher));
             curr_particle_index = launcher_particle_correspondences[i];
             launcher_script.SetParticleSystem(curr_particle_index);
             launcher_script.StopParticleSystem();
         }
     }
 }
示例#3
0
    private void UpdateFireworkLaunchers()
    {
        curr_particle_index = launcher_particle_correspondences[curr_launcher_index];

        GameObject launcher_go = launchers[prev_launcher_index];

        if (launcher_go.GetComponent(typeof(CustomizationSceneLauncher)))
        {
            CustomizationSceneLauncher launcher_script = ( CustomizationSceneLauncher )launcher_go.GetComponent(typeof(CustomizationSceneLauncher));
            launcher_script.StopParticleSystem();
        }

        launcher_go = launchers[curr_launcher_index];
        if (launcher_go.GetComponent(typeof(CustomizationSceneLauncher)))
        {
            CustomizationSceneLauncher launcher_script = ( CustomizationSceneLauncher )launcher_go.GetComponent(typeof(CustomizationSceneLauncher));
            launcher_script.PlayParticleSystem();
        }
    }