| 123456789101112131415161718192021222324252627 |
- 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<T>(this List<T> l)
- {
- T t = l[l.Count - 1];
- l.RemoveAt(l.Count - 1);
- return t;
- }
- public static T back<T>(this List<T> l)
- {
- return l[l.Count - 1];
- }
- }
- }
|