Beispiel #1
0
        static void Main(string[] args)
        {
            try {
                PrintLogo();
                Console.WriteLine(Directory.GetCurrentDirectory());

                ComandManager commanager = new ComandManager();
                ITemplate     monteCarlo = new MonteCarlo();

                IComand run = new Run();
                (run as Run).Add(monteCarlo);

                IComand cnew = new New();
                (cnew as New).Add(monteCarlo);

                commanager.Add(cnew);
                commanager.Add(run);

                if (args.Length == 0)
                {
                    commanager.Help();
                }
                else
                {
                    commanager.Start(args);
                }
            }
            catch (Exception exc) {
                Console.WriteLine(exc);
                Console.WriteLine("Exception was saved at 'log_exception.txt' file");
                StreamWriter sw = new StreamWriter("log_exception.txt", true, Encoding.Unicode);
                sw.WriteLine(exc);
                sw.Close(); sw.Dispose();
            }
        }
Beispiel #2
0
 public void Start()
 {
     workSpace = GameObject.Find("Area").GetComponent <WorkSpaceController>();
     cmd       = GameObject.Find("Main Camera").GetComponent <ComandManager>();
     area      = GameObject.Find("Area").GetComponent <RectTransform>();
     DropDownOnValueChange();
 }
Beispiel #3
0
 public void Start()
 {
     area      = GameObject.Find("Area").GetComponent <RectTransform>();
     workSpace = GameObject.Find("Area").GetComponent <WorkSpaceController>();
     areaSp    = GameObject.Find("Area").GetComponent <Image>().sprite;
     cmd       = GameObject.Find("Main Camera").GetComponent <ComandManager>();
 }
Beispiel #4
0
 public void Start()
 {
     cmd       = GameObject.Find("Main Camera").GetComponent <ComandManager>();
     canvas    = GameObject.Find("Canvas");
     workSpace = GameObject.Find("Area").GetComponent <WorkSpaceController>();
     drop      = GameObject.Find("Area").GetComponent <Drop>();
     SetTextLabel();
 }
 void Start()
 {
     workSpace  = GameObject.Find("Area").GetComponent <WorkSpaceController>();
     garageRect = GetComponent <RectTransform>();
     area       = GameObject.Find("Area").GetComponent <RectTransform>();
     cmd        = GameObject.Find("Main Camera").GetComponent <ComandManager>();
     target     = GameObject.Find("ColliderHelper");
     ShowBorderSizes();
     isActive = false;
 }
 public void Start()
 {
     workSpace       = GameObject.Find("Area").GetComponent <WorkSpaceController>();
     target          = GameObject.Find("ColliderHelper");
     wallScript      = GameObject.Find("ColliderHelper").GetComponent <WallResizeAbuse>();
     area            = GameObject.Find("Area").GetComponent <RectTransform>();
     cmd             = GameObject.Find("Main Camera").GetComponent <ComandManager>();
     widthTool.text  = Convert.ToString(image.rectTransform.sizeDelta.x);
     heightTool.text = Convert.ToString(image.rectTransform.sizeDelta.y);
     settings.transform.localPosition = new Vector2(0, image.rectTransform.sizeDelta.y / 2 + 120);
     wallScript = GameObject.Find("ColliderHelper").GetComponent <WallResizeAbuse>();
     imageRect  = transform.Find("Image").GetComponent <RectTransform>();
 }
 public void Start()
 {
     cmd       = GameObject.Find("Main Camera").GetComponent <ComandManager>();
     workSpace = GameObject.Find("Area").GetComponent <WorkSpaceController>();
 }
Beispiel #8
0
 public void Start()
 {
     workSpace = GameObject.Find("Area").GetComponent <WorkSpaceController>();
     helper    = GameObject.Find("ColliderHelper");
     cmd       = GameObject.Find("Main Camera").GetComponent <ComandManager>();
 }
 private void ButtonRefazer_Click(object sender, RoutedEventArgs e)
 {
     ComandManager.Redo();
 }
Beispiel #10
0
 // Start is called before the first frame update
 void Start()
 {
     rctT  = gameObject.GetComponent <RectTransform>();
     sprtR = gameObject.GetComponent <SpriteRenderer>();
     cmd   = GameObject.Find("Main Camera").GetComponent <ComandManager>();
 }
 public void Start()
 {
     com = GameObject.Find("Main Camera").GetComponent <ComandManager>();
 }