Predicates.TO C# (CSharp) Метод

TO() публичный Метод

public TO ( object args ) : Vector3
args object
Результат Vector3
    public Vector3 TO(object[] args)
    {
        Vector3 outValue = Vector3.zero;
        if (args [0] is GameObject) {	// to an object
            GameObject obj = args [0] as GameObject;
            outValue = obj.transform.position;
        }
        else if (args [0] is Vector3) {	// to a location
            outValue = (Vector3)args[0];
        }

        return outValue;
    }