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.
Separate names with a comma.
It has a lot of sense: If i make: float tempMinPaused = 0; tempMinPaused += Time.deltaTime; Debug.Log...
I don't get it, because, globaly declared floats always get set default to 0, and I can't check for unassigned local variables
Trows: Use of unassigned local variable 'tempMinPaused'
Thank you for the reply, although i get errors in both solutions :S First case: Use of unassigned local variable 'tempMinPaused' Second case: Use...
How could I do that without getting error? //Thats inside a function float tempMinPaused; if (tempMinPaused ==...
public InputField questionText; int questioncounter = 0; public void OnClickNextQuestion() { if...
Thank you a lot, best answer I got here so far.
public class Question { public string fact; public string answer; } public class GameManager : MonoBehaviour { private Question[]...
[MEDIA]
I was about to post it right now HAHAHAHA
//Solved CHILDREN.transform.position = new Vector3(PARENT.tranform.position.x + 1,...
With Int.Parse?
playerChild.transform.position = new Vector3(pSX, -1f * pSY, 0); Debug.Log("Size ("+ pSX +","+ pSY +")"); //pSX gives a value of 0,5...
//It should be: whateverGO.transform.position = new Vector3(1,1,0); //Am I wrong? //And... when we are talking about the position of a GameObject...
I knew that, but i didn't know how to solve it, anyways, what I am doing is watching tutorials and reading books to learn, and I had this doubt
public GameObject player; float playerSizeY; void Start() { SpriteRenderer pSR = player.GetComponent<SpriteRenderer>();...
public GameObject player; SpriteRenderer pSR = player.GetComponent<SpriteRenderer>(); float playerSizeY; //A field initializer cannot...
Then I get this error: The name `pSR' does not exist in the current context
When I do: public GameObject player; SpriteRenderer pSR; float playerSizeY; void Start() { SpriteRenderer pSR =...