Example #1
0
    void CmdHitTrees()
    {
        ParticleSysInstianted2 = (ParticleSystem)Instantiate(ShockWaveSystem, this.transform.position, ShockWaveSystem.transform.rotation);
        ParticleSysInstianted2.transform.position = this.gameObject.transform.position;
        ParticleSysInstianted2.Play();
        NetworkServer.Spawn(ParticleSysInstianted2.gameObject);

        ParticleSysInstianted3 = (ParticleSystem)Instantiate(ExplosionSystem, this.transform.position, ExplosionSystem.transform.rotation);
        ParticleSysInstianted3.transform.position = this.gameObject.transform.position;
        ParticleSysInstianted3.Play();
        NetworkServer.Spawn(ParticleSysInstianted3.gameObject);

        Destroy(this.gameObject);
    }
Example #2
0
    void CmdHitWaterParticles()
    {
        AudioManager.instance.PlayWaterSplashSFX();
#if UNITY_ANDROID
        //if (SettingsData.IsVibrationOn())
        //    Handheld.Vibrate();
#endif
        ParticleSysInstianted2 = (ParticleSystem)Instantiate(hitWaterSystem, this.transform.position, hitWaterSystem.transform.rotation);
        ParticleSysInstianted2.transform.position = this.gameObject.transform.position;
        ParticleSysInstianted2.Play();
        NetworkServer.Spawn(ParticleSysInstianted2.gameObject);

        ParticleSysInstianted3 = (ParticleSystem)Instantiate(waterSplashSystem, this.transform.position, waterSplashSystem.transform.rotation);
        ParticleSysInstianted3.transform.position = this.gameObject.transform.position;
        ParticleSysInstianted3.Play();
        NetworkServer.Spawn(ParticleSysInstianted3.gameObject);

        Destroy(this.gameObject);
    }
Example #3
0
    void CmdHitTerrainParticles()
    {
        AudioManager.instance.PlayFireballHitGroundSFX();
#if UNITY_ANDROID
        //if (SettingsData.IsVibrationOn())
        //    Handheld.Vibrate();
#endif
        ParticleSysInstianted2 = (ParticleSystem)Instantiate(ShockWaveSystem, this.transform.position, ShockWaveSystem.transform.rotation);
        ParticleSysInstianted2.transform.position = this.gameObject.transform.position;
        ParticleSysInstianted2.Play();
        NetworkServer.Spawn(ParticleSysInstianted2.gameObject);

        ParticleSysInstianted3 = (ParticleSystem)Instantiate(ExplosionSystem, this.transform.position, ExplosionSystem.transform.rotation);
        ParticleSysInstianted3.transform.position = this.gameObject.transform.position;
        ParticleSysInstianted3.Play();
        NetworkServer.Spawn(ParticleSysInstianted3.gameObject);

        Destroy(this.gameObject);
    }