A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Rotate the projectile to the same direction as the player when you instantiate it.
I'd probably make a black and white heightmap shaped like a crater, and when you have an explosion you subtract that heightmap from your terrain...
Maybe something like this. I wrote it in notepad so I don't know if it compiles or works.
public Vector3 Clamp(Vector3 vector3)
You haven't asked any questions, but I assume you'd like help rewriting that code to be more concise.
I usually look at the lines with almost...
You have a semicolon after MonoBehaviour. Also, system should be System in line 2.
Post the contents of the file.
You're already choosing an item in a list on line 27.
Have you defined those arrays? Your own code already references one of them. What's the complete error? CS0246 doesn't really make sense in this case.
Good point. I don't know if the overhead is that large, though, but I'd love to see someone doing some performance tests. But there's overhead in...
Can you link those conventions?
Also, the members in OP are properties, not private or public variables.
Since you necroed a 5 year old thread, I'll just throw this link out here:
Maybe this developer came from Java, where you generally have members lowercased.
PlayersCount is an integer and you're trying to assign it to a text field. Call ToString() on it instead.
You're not adding a value to an array anywhere. You're adding a string to a List, though, and that looks fine. What doesn't work? Are you calling...
Generics are substituted during compile time, so you can't do that. You'll have to use reflection.
Where do you want to save it? If it's to disk, just use BinaryWriter and BinaryReader.
How much of your game have you made by now?
Left = (x - a|y + b), Right = (x + a|y - b)
The simplest form of a rotation matrix
That looks like it works fine, though.