How to apply more than one trigger on a single gamebject
I'm wanting to add more than one trigger on a single game object in different areas of the prefab. Should i use 3 box colliders? Can it be done? Please give me guidance regarding this. I have run into...
View ArticleHow do i pass a value from a javascript to a c# script
I would really appreciate it if someone can assist me with this. My playerScript is in javascript. When player scores, I would like to pass the score to a C# script...that can then update my high...
View ArticleHow can i prevent a user from clicking morethan once on an instance of a...
How can i prevent a user from clicking and scoring twice on a given game object (prefab) that is busy being spawned. Im using tags. Im new to unity..So it's a bit like validation i suppose. At the...
View Articlesuspending gameplay with a yield coroutine
var enemySpeed :float; function Update () { amtToMove = enemySpeed * Time.deltaTime; StartCoroutine("Wait"); transform.Translate(Vector3.down * amtToMove); if(transform.position.y <=-6) { Destroy...
View ArticleAnimation mecanim state
Hi all. How do I incorporate a rotating animation to an animation. Example: I have a fish swimming(animating) across the screen. At any given point of it's movement state...when clicked on...I need it...
View ArticleMacanim Mouse Buttons interaction c#
How can I make this work. I have set up 4 states in animator default being idle. I want the clicks to only work on this object...not on the others in the scene. So I figured TAGS? Please point me in...
View ArticleHow to prevent more mouse clicks that trigger sound.
My problem is that when i click on an object multiple times the sound just keeps repeating/echoing. How can i set the co-routine or function to wait until clip and animation is finished playing before...
View ArticleHow to use a parent object in it's child object animation
When creating an animation (Child Object)...i want to include movement in the parent Object as part of the child object's animation. Is this possible with Mecanim?
View ArticleHas anyone tried writing a non-game android app using unity with backend etc?
I'm thinking of writing a proper business (android) app using unity (Java script)...OR will I be wasting my time...Just a thought?
View ArticleHow to get animations to be available for different objects?
Hi. I'm hoping that someone will be able to help me here. I have a **parent** object with two child objects tossing(onclick) a THIRD object between them. How can i make the THIRD object a child of both...
View Article