Quantcast
Channel: Questions in topic: "count"
Browsing all 187 articles
Browse latest View live
↧

How can record the total amount of prefabs that are spawned during runtime?

Hello folks, I want to create a script where prefabs of one kind will stop after 30 times of being spawned, After this, another prefabs of a different kind will follow up. To create this script I need...

View Article


Collision counter

How can I get a counter that counts the collisions in my 2D game? I use this code to register the collisions: void OnCollisionEnter2D(Collision2D collision) {

View Article


death count resets after re-loading scene

deahtAds script: public int death; private static readonly Dictionary REVMOB_APP_IDS = new Dictionary () { } }; private RevMob revmob; private RevMobFullscreen fullscreen; // Use this for...

View Article

Help for shots in a script

Hello everyone. I'm not very good at compile scripts, so I ask you a hand. I wish in this script counted 10 shots and then off an object assigned to the script together with a sprite or texture always...

View Article

Disable item after 10 shots.

Hello how can I disable an object after you press 10 times the left-muose? This is the script that I'm using, but does not work very well. My script. #pragma strict var myTrigger : GameObject; var...

View Article


Countdown by pressing a button.

How can I add a countdown in this script, by pressing the left mouse button? Every click counts minus 1. 10,9,8,7,6,5,4,3,2,1,0 example. ? This currently does not work in this script does not...

View Article

Voting System Using List (C#)

Good morrow to you all. I've been making this card game, and encountered a problem that I myself can't solve. So, there is a deck of cards (list of strings, the game doesn't require anything more...

View Article

How to use Asset Database Count for item ID

Anyone know how to utilize the database.count as an item's ID? I'd rather use that than a standard value you enter because it would be easy to get confused and enter the wrong number. ISObjectDatabase...

View Article


Accessing base class list in a derived class.

I need to get information on a list I made in a base class inside of a derived class. Is there anything special I need to do? Whenever I try to get the list.count the value just returns 0 every time....

View Article


How to count and name total number of game object are there in my scene?

So basically i just want to count how many game object are there in my scene. Is there any special built in function ?

View Article

problem count life of the player.

Hello! I have three scripts. 1 is (ContoVita) that counts the screw from three to zero added to a GUITEXT. All written by me is added in the inspector. using UnityEngine; using System.Collections;...

View Article

Count selected item in List

Hello, I want to simply check number of selected item, in my case, of empty Item in inventory. I created enums for items and basic constructor to create them without parameters which set type to...

View Article

I want get gameobjects except destory obejct in loop.

I want get gameobjects except destroy object. My code is here. (It is just sample.) > void free(){> GameObject[] all;>> while(true){> all = GameObject.FindGameObjectsWithTag("test");>...

View Article


How many variables can i have of type 'Prefab' in a scene at one time?

I'm making a game with a lot of items. Things like apples, clothing, and even scene props like trees and houses. I made it so that I have non-3D versions of each item. So when I click on the 3D apple,...

View Article

Make a list of gameObject's child by name

How do I get the count of childs with a desired name of a gameObject? Basically what I'm trying to do would be a childCount but to only count the childs with the name I want is this possble to achieve?...

View Article


What is the max amount of prefabs i can register to be spawned with my...

Hello, I am making a game that will need to have a hundred or so items, a hundred or so monsters, some animals, and some spells and skill animations all registered for spawning for...

View Article

Can't drag text object into inspector?

I have this code written to increase my score when I destroy an enemy, but whenever I try to drag the text object into the inspector so that it can actually be affected by the script, I am unable to. I...

View Article


Problem with Checkpoint counting

I've made Checkpoint system, where a plane goes through rings and checkpoints are counted. It was done with OnGUI. Recently I came across one of the Unity tutorials:...

View Article

Problem with counting front flips

Hi, I have a problem with counting front flips. The problem here is when the hero makes a back flip it still counts and I don't want it. Here's a video of it:...

View Article

Problem with counting front flips

I thought I have solved my problem to count a front flip but unfortunately that wasn't because I can't decrease it. Here is the url from my last question about this:...

View Article
Browsing all 187 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>