This code shows me seconds and miliseconds after game started. What should I...
using UnityEngine; using System.Collections; using UnityEngine.UI; public class TimerScript : MonoBehaviour { public Text timerText; private float secondsCount; private int count; // Use this for...
View ArticleWhy is my highScore counting from 10 , not from 0 ??? Thanks in advance :))
using System.Collections; using UnityEngine; public class idemmosc : MonoBehaviour { public float speed = 4f; public Rigidbody2D rb; private float movement = 3f; static int score = 0; static int...
View ArticleWhy my counting method is stucked on the beginning?
Hello, I hava created script to count goals, but the text is stucked on 0 even if i it should be 1 or more. Thanks for help :) private int score1; public Text score1Text; // Use this for initialization...
View Articlemany collisions while holding an item
Hello all, I'm sending a massage to the log file when I pick an Item with HTC Vive controller. in my log file I get this: Picked item, name : AppleRed at: 6/25/2017 5:43:17 PM Picked item, name :...
View ArticleHow to Update a score count going up and down
Hi I'm trying to make it so that when a ball hits the ground, the score count goes down by 1. I already have it where if the ball hits a moving box, then the score count goes up by 1, which is fine....
View ArticleList Size Changes Without Removing Elements
Extremely weird issue. I declare a List of ints and add to it. Later on, after one of the values in the list becomes 0, that specific item is removed. However, I've noticed that the value for the list...
View ArticleHit 87k methods after adding Facebook SDK - help
Hello! I am trying to make all-in-one lib for my work that includes ads sdk, fb sdk, analytics sdk and play game services. Before adding facebook SDK (which was the last sdk) everything works perfectly...
View Articlewhat do i have to fix on my script so the GUI TEXT i added counts and doesnt...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SimplePlatformController : MonoBehaviour { [HideInInspector] public bool facingRight = true;...
View Articlei'm beginner in unity ! my problem is i can't count the number of zombie...
#pragma strict var ZombieHealth : int = 100 ; function OnCollisionEnter (col : Collision) { if ( col.gameObject.tag == "Bullet") { ZombieHealth -= 25 ; } } function Update () { if ( ZombieHealth <=...
View ArticleCount stops counting after first count.
So I have made a pinball type game with 2 balls and about 40 coins. On each coin I have a script that I will link to the post. However after a ball collides with the first coin it will set the...
View ArticleSo how do I fix Count error?
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Scriptsphere : MonoBehaviour{ private Rigidbody rb; private int count; public Text...
View ArticleMy List is resetting to empty for no good reason
I have a private List of GameObjects that gets Added to when my space scene is initialised. There is nothing in my code removing or reducing the size of this list, but Debug.Logs of its .Count tell me...
View ArticleCount Prefabs on builded .apk
Hey, Is there any way to get a number of prefabs on a builded game? I know this will work in the Editor: var levelCount = Directory.GetFiles(Application.dataPath + "/Resources/Prefabs/",...
View ArticleCombine (skinned) submeshes causes increased vertcount(for each submesh the...
I have a skinned mesh made up of 5 meshes. Two of them have submeshes. After combining them to one mesh. The vertcount is increased by the number of submeshes of each mesh. Simple example: First mesh...
View ArticleDynamic Batching not working
I have this issue in unity3D that if I place to sprites on the scene and i duplicate them alternatively (in the order that the image shows) they are making 6 draw calls . This doesn't happen if I have...
View ArticleScoring system not working?
I'm trying to make it so that it will increase score by 10 when the gem is picked up by the Player gameObject. I have the Count: text on screen, but it isnt increasing by 1 when the prefab is picked...
View ArticleScore system not working
I am wanting to pick up a prefab, "Gem", and for the system to add 10 points. I have the scoreText visible on screen, but it doesn't add 10. Here is the code: using UnityEngine; using...
View ArticleCount Down Timer
Hello I would like to ask how you can make a count down timer that will run even when the game is off
View ArticleTessellation + total vert/tri count
Hi! Simple question: when using a simple fixed ammount tessellation shader found here http://docs.unity3d.com/Manual/SL-SurfaceShaderTessellation.html is it possible in any way to get the total count...
View Article