Exemplo n.º 1
0
    void CalculateAmountRaked()
    {
        if (raked >= (originalThird * texture.height) && !isRakedEnough)
        {
            isRakedEnough = true;
            //Debug.Log("Raked enough.");
            gravelShrine.processPits();
        }

        else if (raked < (originalThird * texture.height) && isRakedEnough)
        {
            isRakedEnough = false;
            //Debug.Log("Not Raked enough.");
            gravelShrine.processPits();
        }
    }
Exemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        if (check == 0 && patternMatches == false && HyperCreature.instance.w == GetComponent <HyperObject>().w)
        {
            //Debug.Log ("Check pattern = true");
            if (checkDrawnPattern() >= 1f)
            {
                patternMatches = true;
                //Debug.Log ("Current Plane: " + GetComponent<HyperColliderManager>().w);
                Debug.Log("Pattern matches.");
                gravelShrine.processPits();
                check = 1;
            }

            else
            {
                //Debug.Log ("Current Plane: " + GetComponent<HyperColliderManager>().w);
                Debug.Log("Pattern does not match.");
                patternMatches = false;
                check          = 1;
            }
        }
    }