Exemplo n.º 1
0
    public void ErrorEffectOn(int x, int y)
    {
        Vector3    touchPos     = StageMap.GetTouchPos(x, y);
        GameObject newEffect    = Instantiate(effectLevel[0]);
        Vector3    effectOffset = new Vector3(0f, -0.1f, 0f);

        newEffect.transform.position = touchPos + effectOffset;
        model.levelEffect[x, y]      = newEffect;
        //Destroy(newEffect, 2f);
    }
Exemplo n.º 2
0
    public void HoldLevel(int x, int y, int level)
    {
        if (level >= 0)
        {
            Vector3 touchPos = StageMap.GetTouchPos(x, y);

            GameObject newEffect = Instantiate(effectLevel[level]);

            Vector3 effectOffset;
            if (level == 0)
            {
                effectOffset = new Vector3(0f, -0.1f, 0f);
            }
            else
            {
                effectOffset = new Vector3(1f, 0f, 0f);
            }

            newEffect.transform.position = touchPos + effectOffset;
            model.levelEffect[x, y]      = newEffect;
        }
    }