Exemple #1
0
        public static bool HasVector2(this XmlElement xml, string attribute, out Vector2 value)
        {
            value = Vector2.zero;
            if (!xml.HasAttribute(attribute))
            {
                return(false);
            }

            return(Vector2Converter.Convert(xml.Attributes[attribute], ref value));
        }