using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Text; namespace WXB { public static class ObjectExtension { public static StringBuilder AppendLine(this StringBuilder sb, string value, params string[] args) { return sb.AppendLine(string.Format(value, args)); } public static T pop_back(this List l) { T t = l[l.Count - 1]; l.RemoveAt(l.Count - 1); return t; } public static T back(this List l) { return l[l.Count - 1]; } } }