Ejemplo n.º 1
0
    public override bool Update()
    {
        object objA = A.Value;
        object objB = B.Value;

        if (objA != null && objB != null)
        {
            GameObject goA = (GameObject)objA;
            GameObject goB = (GameObject)objB;

            //EB.Debug.Log("Equality test: A:"+numA+" B:"+numB);

            if (goA == goB)
            {
                Check1.Invoke();
            }

            if (goA != goB)
            {
                Check2.Invoke();
            }
        }
        else
        {
            EB.Debug.Log("Equality test failed, game object A or B is null - Parent:" + Parent.name);
        }
        return(false);
    }
Ejemplo n.º 2
0
    public override bool Update()
    {
        object objA = A.Value;
        object objB = B.Value;

        if (objA != null && objB != null)
        {
            float numA = (float)objA;
            float numB = (float)objB;

            //EB.Debug.Log("Equality test: A:"+numA+" B:"+numB);

            if (numA == numB)
            {
                Check1.Invoke();
            }

            if (numA > numB)
            {
                Check2.Invoke();
            }

            if (numA < numB)
            {
                Check3.Invoke();
            }

            if (numA >= numB)
            {
                Check4.Invoke();
            }

            if (numA <= numB)
            {
                Check5.Invoke();
            }

            if (numA != numB)
            {
                Check6.Invoke();
            }
        }
        else
        {
            EB.Debug.Log("Equality test failed, item A or B is null - Parent:" + Parent.name);
        }
        return(false);
    }