Posts by general656
7 posts total, newest first.
In Game Variable not Workin' ...in Unity / UDK / GameStudio / CryEngine Development - [QUOTE=atom0s;8314869]Try defining the points outside of the function then as part of the class. I'm not sure if Unity puts limitations on the code it runs inside its scripts or not.
Also you should check if greater thanIn Game Variable not Workin' ...in Unity / UDK / GameStudio / CryEngine Development - I just want when I push "F" the flashlight to turn on ONLY if I have 5 points . And when I push "O" to gain Points so I can use the flashlight . But if I try the "int points = 0 " to make it "static int points = 0" it doUnity and Light with C# ... [HELP]in C# Programming - I am sorry ... the method is GetKeyDown ... isn't the same thing as an idea ? I mean generaly both of them doing the same thing except one little ... that GetKey is able to use the next code after it if only you stop holHow Can I Make An InGame Variable (Integer) [Help]in C# Programming - I tryed with "static" keyword but unity sends me an error ... Unexpected Symbol 'static'How Can I Make An InGame Variable (Integer) [Help]in C# Programming - I want to make a variable that will work In The Game . I mean I tryed this :
public class flashing : MonoBehaviour {
// Update is called once per frame
void Update()
{
int points = 0;
if(Input.GetKeyDown
Showing the 5 most recent posts.