Exemplo n.º 1
0
    void handleMixReverseReaction()
    {
        if (call.getmixReverseReaction() == "smoke")
        {
            mixReaction = Instantiate(Resources.Load("SmokeEffect") as GameObject, new Vector3(1f, 6f, -20f), transform.rotation);
        }

        else if (call.getmixReverseReaction() == "white explosion")
        {
            mixReaction = Instantiate(Resources.Load("WhiteExplosion") as GameObject, new Vector3(1f, 6f, -20f), transform.rotation);
        }

        else if (call.getmixReverseReaction() == "sparks")
        {
            mixReaction = Instantiate(Resources.Load("Flare") as GameObject, new Vector3(1f, 6f, -20f), transform.rotation);
        }
    }