private void _expandingCircleButton_Click(object sender, EventArgs e) { //OpenForm<ExpandingCircleTester>(); var point = PointToScreen(Location); ExpandingCircle.ShowExpandingCircle(point.X, point.Y, Color.Green, 10, 100, 5); }
private IEnumerator ScanRings(float angle = 0f, float arcSize = 360f, bool loop = true, float frequency = 0.5f) { WaitForSeconds wfs = new WaitForSeconds(frequency); System.Action a = () => { ExpandingCircle scan = Instantiate(scanningBeam); scan.lifeTime = scanDuration; scan.rot = angle; scan.arcSize = arcSize; scan.loop = loop; scan.transform.position = transform.position; scan.transform.parent = ParticleGenerator.holder; }; a(); yield return(wfs); a(); yield return(wfs); a(); }