private void PrintArgs(string[] args)
 {
     foreach (var item in args)
     {
         CommandLineCore.Print(item);
     }
 }
        public override void Help()
        {
            StringBuilder helpMessage = new StringBuilder();

            helpMessage.AppendLine("example");
            helpMessage.Append("printargs string:messageToPrint");

            CommandLineCore.Print(helpMessage.ToString());
        }
Example #3
0
        public virtual void Help()
        {
            StringBuilder builder = new StringBuilder();
            int           counter = 0;

            foreach (var item in commands)
            {
                builder.Append(item.Key);
                counter++;
                if (counter < commands.Count)
                {
                    builder.Append("\n");
                }
            }
            CommandLineCore.Print(builder.ToString());
        }
 private void SomeMethod(string[] args)
 {
     Debug.Log("SomeMethod() was called");
     CommandLineCore.Print("This is an example message.");
 }