Example #1
0
 static void Main(string[] args)
 {
     Console.WriteLine("Testing with C#5");
     Compiler1.Compile("HelloWorld.exe", Compiler1.Target.EXE, Compiler1.Platform.x86, new string[] { "", "" }, new string[] { "", "" }, false, @"C:\Users\ion\Desktop\helloworld.cs", Compiler1.Language.CSharp);
     Console.WriteLine("Testing with C#6");
     Compiler2.Compile("HelloWorld.exe", Compiler2.Target.EXE, Compiler2.Platform.x86, new string[] { "", "" }, new string[] { "", "" }, false, @"C:\Users\ion\Desktop\helloworld.cs", Compiler2.Language.CSharp);
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     compiler2        = GameObject.FindGameObjectWithTag("compiler").GetComponent <Compiler2>();
     compiler         = GameObject.FindGameObjectWithTag("compiler").GetComponent <Compiler>();
     originPos        = this.GetComponent <RectTransform>().anchoredPosition;
     offPos           = new Vector2(originPos.x - 155, 0);
     onPos            = new Vector2(originPos.x + 155, 0);
     toggleBackground = this.transform.Find("ToggleBackground").gameObject;
     backgroundColor  = toggleBackground.GetComponent <Image>();
     toggleHandle     = this.transform.Find("ToggleHandle").gameObject;
     handlePos        = toggleHandle.GetComponent <RectTransform>();
 }