Beispiel #1
0
 /// <summary>
 /// Creates a new <see cref="ConsoleSystem"/> instance.
 /// </summary>
 public ConsoleSystem(MortarApp mortarComponent)
     : base(mortarComponent)
 {
     ConsoleWindow = new InGameWindow();
     ConsoleWindow.IsVisible = false;
     ConsoleWindow.Position = new Vector2(5, 5);
     ConsoleWindow.Size = new Vector2(320, 220);
     ConsoleWindow.Title = CONSOLE_WINDOW_TITLE;
     LatestInput = "";
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new <see cref="MovementSystem"/> instance.
 /// </summary>
 public MovementSystem(MortarApp mortarComponent)
     : base(mortarComponent)
 {
 }
Beispiel #3
0
 /// <summary>
 /// Reset is called when the user hits the Reset button in the Editors Inspector's 
 /// context menu or when adding the component the first time. 
 /// </summary>
 public void Reset()
 {
     instance = this;
 }
Beispiel #4
0
 /// <summary>
 /// Awake is called when the script instance is being loaded.
 /// </summary>
 public void Awake()
 {
     instance = this;
 }