Ejemplo n.º 1
0
    private void Explode()
    {
        BombExplosionEffect effect = Instantiate(bombExplosionEffect, this.transform.position, this.transform.rotation);

        effect.ShowEffects();

        Destroy(this.gameObject);
    }
Ejemplo n.º 2
0
        public static bool Prefix(MissedNoteEffectSpawner __instance, Vector3 pos, NoteController noteController, NoteCutInfo noteCutInfo, ref BombExplosionEffect ____bombExplosionEffect, ref FlyingSpriteSpawner ____failFlyingSpriteSpawner, ref ShockwaveEffect ____shockwaveEffect)
        {
            if (!Plugin.active)
            {
                return(true);
            }

            FlyingSpriteSpawnerPatch.lastNoteRotation    = noteController.transform.rotation;
            FlyingSpriteSpawnerPatch.lastNoteRotationSet = true;
            Vector3 pos2 = Quaternion.Inverse(FlyingSpriteSpawnerPatch.lastNoteRotation) * pos;

            ____failFlyingSpriteSpawner.SpawnFlyingSprite(pos2);
            ____bombExplosionEffect.SpawnExplosion(pos);
            Vector3 pos3 = pos;

            pos3.y = 0.01f;
            ____shockwaveEffect.SpawnShockwave(pos3);

            return(false);
        }