Answer by fireomega
A simple Destroy code and then just add the time the particle lasts for. e.g. say the time it lasts for is 5 seconds than you do: Destroy(gameObject, 5);
View ArticleAnswer by fireomega
Assuming I think you just want a simple shooting script when you click then you just do. var projectile : Rigidbody; var speed = 50; var fireRate = 0.11; private var lastShot = -10.0; function Update...
View ArticleAnswer by fireomega
one way is you could have two scripts such as the one for the gui which you attach to an empty gameObject. I'm assuming you know how to make a gui box already. Name the object e.g. Info Then make a...
View ArticleAnswer by fireomega
Assuming you have a script for your health you just make another variable var damage = 10; then you just make a OnCollisionEnter function in your script and do if(Collision.gameObject.tag == "enemy"){...
View ArticleAnswer by fireomega
make a variable for the counter and make it a static variable static var counter = 0; then in a gui function make something like a gui box which contains the counter then in a script attached to people...
View ArticleAnswer by fireomega
assuming you want it to be automatic just change the "GetButtonDown" to just "GetButton" or you could just play around with the fire rate
View ArticleAnswer by fireomega
Or if you want to stop them disappearing then just get rid of the Destroy line at the bottom
View ArticleAnswer by fireomega
You could try making an if statement like if(cam2.active == true){gui.active = true;} please ask if you want anymore help
View ArticleAnswer by fireomega
Instead of setting where the gui is with a set figure e.g. 500 you could just set it to something like 2/Screen.height
View ArticleAnswer by fireomega
ok lets say that your making a script that when something happens health goes down by 1 and you want to access it from another script. You write: transform.Find("Player").GetComponent("Health").health...
View ArticleAnswer by fireomega
A simple Destroy code and then just add the time the particle lasts for. e.g. say the time it lasts for is 5 seconds than you do: Destroy(gameObject, 5);
View ArticleAnswer by fireomega
Assuming I think you just want a simple shooting script when you click then you just do. var projectile : Rigidbody; var speed = 50; var fireRate = 0.11; private var lastShot = -10.0; function Update...
View ArticleAnswer by fireomega
one way is you could have two scripts such as the one for the gui which you attach to an empty gameObject. I'm assuming you know how to make a gui box already. Name the object e.g. Info Then make a...
View ArticleAnswer by fireomega
make a variable for the counter and make it a static variable static var counter = 0; then in a gui function make something like a gui box which contains the counter then in a script attached to people...
View ArticleAnswer by fireomega
assuming you want it to be automatic just change the "GetButtonDown" to just "GetButton" or you could just play around with the fire rate
View Article
More Pages to Explore .....