コード例 #1
0
    private static void Explosion_Red_Silver(Transform reactionist)
    {
        // Particles

        ParticleSystem explosionParticles = Instantiate(
            inst.explosionPrefab,
            reactionist.position,
            Quaternion.identity,
            inst.transform)
                                            .GetComponent <ParticleSystem>();

        explosionParticles.Play();
        Destroy(explosionParticles.gameObject, inst.explosionDuration);

        // Damage

        CombatManager.ColliderAttackSphere(
            reactionist.position,
            inst.explosionRadius2.radius,
            inst.explosionDamage,
            Substance.none_physical,
            inst.Effected);
    }