Parsing.ParseVector3 C# (CSharp) Метод

ParseVector3() статический приватный Метод

static private ParseVector3 ( string literal, int &from, Vector3 &result ) : bool
literal string
from int
result Vector3
Результат bool
    static bool ParseVector3(string literal, ref int from, ref Vector3 result)
    {
        if (!ParseDecimal(literal, ref from, ref result.x) ||
            !ParseDecimal(literal, ref from, ref result.y) ||
            !ParseDecimal(literal, ref from, ref result.z))
        {
            Debug.LogWarning("Parsing '" + literal + "' as Vector3 failed; skipping the rest.");
            return false;
        }
        return true;
    }

Same methods

Parsing::ParseVector3 ( string literal, Vector3 &result ) : bool