Exemplo n.º 1
0
        public static string Inspect(BaseSystem system)
        {
            var sb = new StringBuilder();

            Inspect(system, sb);
            return(sb.ToString());
        }
Exemplo n.º 2
0
        public static void Inspect(BaseSystem system, StringBuilder sb, string prefix = "")
        {
            Debug.Assert(system != null);
            sb.Append(prefix);
            sb.AppendLine(system.GetType().Name);
            var current = system.children;

            while (current != null)
            {
                Inspect(current, sb, prefix + "  ");
                current = current.sibling;
            }
        }
Exemplo n.º 3
0
 public override void OnMessage(BaseSystem sender, int msg, object arg1, object arg2)
 {
     Debug.LogFormat("[{0:0.00}] {1} arg1: {2} arg2: {3}", Time.time, msg, arg1, arg2);
 }
Exemplo n.º 4
0
 public ConsoleSystem(BaseSystem parent)
 {
     parent.AddChild(this);
 }