Not all code paths return a value?
I've searched around, but can't seem to figure out why my code paths wouldn't return a value on my IEnumerator RandomColor(). I'm not too familiar with IEnumerator, but after some research it fixed...
View ArticleCan't add script (Doesn't exist?)
So I've been working on the unity scripting tutorials, trying to learn, and now I'm getting incredibly angry at this issue. I started working on the "Enabling Components" part of the tutorial....
View ArticleCan anyone tell me why this code isn't working?
I'm trying to make a simple pong game using a tutorial I found online. The person in the tutorial is using javascript, but i'm trying to follow along using C#. Here is the script i'm using: using...
View ArticleWhy is this script not working? (SendMessage)
I have two scripts. One on a wall, another on a ball. I'm trying to access a void from one script, in a different script. Here is the script with the function: public void ResetBall () { var rigY =...
View ArticleHow to debug values in jagged arrays?
I'm trying to learn how to debug in unity, and at the moment i'm using this code to find factorials. using UnityEngine; using System.Collections; public class CodeExample : MonoBehaviour { // Use this...
View ArticleApplication.LoadLevel() changes lighting for some reason?
I'm making a very simple game. Basically after the play misses three object, the game will reload the scene he was just on. So i would use Application.LoadLevel("_Scene_00"); However, for some reason...
View ArticleCan't get smooth 2d movement for an object using transform.position
So I have 3 objects doing a transform.position type of thing. One object follows the player, mirroring his every move. The camera follows the player, doing the exact thing. Then a rectangle follows the...
View ArticleNot all code paths return a value?
I've searched around, but can't seem to figure out why my code paths wouldn't return a value on my IEnumerator RandomColor(). I'm not too familiar with IEnumerator, but after some research it fixed...
View ArticleCan't add script (Doesn't exist?)
So I've been working on the unity scripting tutorials, trying to learn, and now I'm getting incredibly angry at this issue. I started working on the "Enabling Components" part of the tutorial....
View ArticleCan anyone tell me why this code isn't working?
I'm trying to make a simple pong game using a tutorial I found online. The person in the tutorial is using javascript, but i'm trying to follow along using C#. Here is the script i'm using: using...
View ArticleWhy is this script not working? (SendMessage)
I have two scripts. One on a wall, another on a ball. I'm trying to access a void from one script, in a different script. Here is the script with the function: public void ResetBall () { var rigY =...
View ArticleHow to debug values in jagged arrays?
I'm trying to learn how to debug in unity, and at the moment i'm using this code to find factorials. using UnityEngine; using System.Collections; public class CodeExample : MonoBehaviour { // Use this...
View ArticleApplication.LoadLevel() changes lighting for some reason?
I'm making a very simple game. Basically after the play misses three object, the game will reload the scene he was just on. So i would use Application.LoadLevel("_Scene_00"); However, for some reason...
View ArticleCan't get smooth 2d movement for an object using transform.position
So I have 3 objects doing a transform.position type of thing. One object follows the player, mirroring his every move. The camera follows the player, doing the exact thing. Then a rectangle follows the...
View Article