Questions tagged [C#] (7211)

1
answer

Books/tutorials on writing your own game engine?

Prompt, please, good books/tutroial to create their own game engine.
brennon_OConner asked April 19th 20 at 12:37
1
answer

How to convert file to text format?

Actually getting the file from outside web servers, I need to read its contents and write the strings, but I can't figure out how to write the resulting file into a variable and insert it e.g. in a textbox without saving it on local disk. The file format is not text! Easier - for example I downloaded the file and opened i...
Roger.Jon asked April 19th 20 at 12:36
2
answers

How in c# to do the correct handling clicks?

Have form 1, it creates a form 2, form 2 two textbox and button, you need to do so by clicking this button, the data from textbox1 enrolled in variable 1 and variable 2 in textbox2 and the form closed. Form 2 is run in a separate thread. How to implement it? in particular the button1 handler.click += new EventHandler(method...
kim.Abbott asked April 19th 20 at 12:34
1
answer

The architecture of the game. How to separate menu from the game loop?

Hello. My question relates to the professional developer who knows what, how and why. I am familiar with the basics of C#. Including the PLO. There are difficulties with understanding delegates and events, ie how it works. Planning to write a game. No Unity, Win Forms or Monogame. Start simple. And on simple the question! T...
keyshawn.Wa asked April 19th 20 at 12:33
2
answers

How does matrix multiplication in the library System.Numerics.?

I read the documentation and a few articles, but the normal videouroki not found. Tell me a code example of matrix multiplication. And in General it looks like the matrix in this biblioteke.
korey asked April 19th 20 at 12:31
2
answers

How to make a request correctly?

There is code in PHP, translate it in C#: $fields = array( 'Page' => $page, 'Sides' => array( ), ); $fields_string = http_build_query($fields); curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string); That is, send a post request: var values = new List<KeyValuePair<string, string>> { new KeyValuePair<...
Alvina_Wintheis asked April 19th 20 at 12:31
2
answers

Does not work the download scenes, how to fix?

Not working code. Where the mistake was made? Problems writes, the colliders are 2D. By pressing nothing happens using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class LoadScene : MonoBehaviour { public int N; public void OnMouseDown () { Scene...
Randal63 asked April 19th 20 at 12:27
1
answer

Unity in action. Multi-platform development in C#. Publisher 1 or 2?

Hello, please advise a book on Unity. Already read the answers to the question which book to choose for Unity, all advised Unity in action. Multi-platform development in C#. Going to buy and have found that there are 2 publishers, and they vary. Which publisher do you recommend? If there is still any good books on Unity, pl...
Aaron49 asked April 19th 20 at 12:25
0
answer

Restart animation storyboard?

Hi. Can't restart the animation. Design Name.Storyboard.Stop(this); Name.Storyboard.Begin(this,true); not working. What is the reason ? Who can tell ?
evalyn.Lind asked April 19th 20 at 12:25
1
answer

Whether to work this code?

There is here such code IEnumerator instObj () { (1) yield return new WaitForSeconds(1.5 f); (2) Instantiate(obj, new Vector3(Random.Range(-10f, 10f), 0, Random.Range(-10f, 10f)), Quaternion.identity); } Will it work if you swap (1) and (2) IEnumerator instObj () { (2)Instantiate(obj, new Vector3(Random.Range(-10f, 10f...
marcelle.Glover asked April 19th 20 at 12:23