コード例 #1
0
 protected override void SetValue(GroupCollection groups, out CommandError error)
 {
     error     = null;
     _Name     = groups[1].Value;
     _Position = StringDefine.ParseVector2(groups[2].Value);
     _Url      = groups[3].Value;
 }
コード例 #2
0
    public void ParsingVector2Test()
    {
        string  text = "(0,-1.5)";
        Vector2 vec  = StringDefine.ParseVector2(text);

        Assert.AreEqual(new Vector2(0.0f, -1.5f), vec);
    }