Answer by RedDevil
I downloaded the latest patched version and i guess it also reseted some values and it somehow worked.
View ArticleAnswer by RedDevil
Since i could not really find a good way to do this with PointerEventData i just changed my code so that i can achieve what i was after. The way I solved the problem is by changing on PointerDown to...
View ArticleAnswer by RedDevil
If you want to return a string just declare a string variable and if you want to see the string in the console use either Debug.Log either print("bla bla string");
View ArticleAnswer by RedDevil
I see you are using the sample assets.When you imported that script you forgot to import the cross platform folder.
View ArticleAnswer by RedDevil
I just put my function: void Start() { StartCoroutine(FunctionName()); } IENumerator FunctionName() { while(true) { yield return new WaitforSeconds(time you want); instantiate enemy yield return new...
View ArticleAnswer by RedDevil
i would say to try and learn C# because it will be easyer to learn Java(not JavaScript) in the future as it is very similar and also a little of the other C languages
View ArticleAnswer by RedDevil
You can just use a particle like i did .There is an awesome free particle pack on the asset store called Elementals.
View ArticleAnswer by RedDevil
if wind is what you want go to GameObject->Create other->Wind zone and set it up as you want .You were talking about some videos but you did not posted them.
View ArticleAnswer by RedDevil
You can simply do this in the inspector like in this photo: ![alt text][1] [1]: /storage/temp/30107-freze+rotation.png
View ArticleAnswer by RedDevil
var GA : GameObject = Instantiate(BubblePrefab, BubbleSpawn.position, BubbleSpawn.rotation) as GameObject; GA.transform.position += Time.deltaTime * 5 * transform.forward;
View ArticleAnswer by RedDevil
if(Input.GetKeyDown(KeyCode.W)) { audio.Play(); } else if(Input.GetKeyDown(KeyCode.A)) { audio.Play(); } else if(Input.GetKeyDown(KeyCode.S)) { audio.Play(); } else if(Input.GetKeyDown(KeyCode.D)) {...
View ArticleAnswer by RedDevil
Yes there is...in fact you can make all scripts go in what order you want.I was experiencing a similar issue. GO to EDIT->Project Settings->Script Execution Order and there you can add or remove...
View ArticleAnswer by RedDevil
I dont recomand using this for spawn points: private GameObject SpawnPoints = GameObject.FindGameObjectWithTag("Spawn Point"); If you do this then it will have to search for it everytime. Just declare...
View ArticleAnswer by RedDevil
this happeds because you are showing it at height of 515 pixels and maybe the mobile phone you are testing this on does not have a resolution that big.To solve this you chould just postion it at screen...
View ArticleAnswer by RedDevil
You cannot acces the gold amound like this mainScript = GameObject.Find ("Main Camera").GetComponent(goldAmount); GetComponent is meant for getting components of an object.Like getting the transform...
View ArticleAnswer by RedDevil
#pragma strict var footsteps : PlayerFootsteps; var WoodFloor : BoxCollider; function Start () { WoodFloor = GameObject.Find("Wood Floor Trigger").GetComponent(BoxCollider); footsteps =...
View ArticleAnswer by RedDevil
You chould either do order in layer of UI or try to move the objects you want on top to be first in the canvas heirarchy.
View Article