Exemple #1
0
	///OnEnable() is like start and update; it's only called once, earlier than start
	void OnEnable() 
	{
		dudeMove = transform.GetComponent<DudeMvt> (); ///transform.GetComponent references this object's transform  (Transform will access the Transform function)
		StartCoroutine ("Inputs");
	}
Exemple #2
0
	void OnEnable() //like start and update, it's only called once, called earlier than start
	{
		dudeMove = transform.GetComponent<DudeMvt> (); //will reference this object's transform  (Transform will access the Transform thing)
		StartCoroutine ("Inputs");
	}