예제 #1
0
    public void SpawnExplosion(Vector3 pos, float scale)
    {
        ExplosionController ec = op.InstantiatePooled(
            pos,
            Quaternion.identity,
            false
            ).GetComponent <ExplosionController>();

        ec.Initialize(op, scale);
        StartCoroutine(ec.Explode());
    }