A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
ok here is some of the code removed for simplicity public class cubeTracker : MonoBehaviour { private float x = 0; private float y = 0;...
I've been wracking my brains over this for a few days now and I cant seem to make any progress. Logically what I need to do is: if the cube is...
HI all, In my game I have a cube that rolls from grid to grid. The grid is 9x9 squares. On each grid is a script attached that has two boolean...
I've created a small function that is informing me when the object is to the left, right, behind or in front of the obstacle: private void...
Hi Eric, Thanks for the reply. Setting up a 2d array could work, but could you elaborate as to how I could read ahead the array so that my object...
Is this counting up or counting down? You could possibly use a substr function :D for example: var startTime : float = 0.0; var minutes :...
Hi all, I am writing a game with a simple 9x9 grid to start off with using the code below: public class gridBuilder : MonoBehaviour {...
Hi all, I have a small function shown below: private void turnLightsOffObs() { short p = 0; Transform test; // if there are...
OK Ive implemented the Singleton class and I get this error: UnityException: You are not allowed to call this function when declaring a variable....
Excellent, ill give it a go! :D
So rather than passing an instance of the class around in parameters, I can use: DataManager d = Singleton<DataManager>.Instance; on any script...
I understand. Thanks :P, I was just wondering if having a datamanager class was the right way to go if i should just store my variables within...
OK.....could you give an example for that please?
In the start function void Start() { m_DataManager = new dataManager(); cubePos = m_DataManager.getCubePosition();...
Hi all, I'm having problems displaying a variable in my OnCollsionEnter() function. I have created a datamanager class to hold all my...
OK thanks ill give it a whirl :D
Hi all, I have a cube rolling around a platform with some walls (identical to the cube, a little smaller). Currently when the cube collides...
Thanks for the help again. I did what you said yet it still spins on the spot.....strange
Hey thanks for the reply bigmisterb, With that code, my cube rotates on the spot, i need it to move also whilst doing that same rotation. Any ideas?
No that didnt work. I have attached a screenshot to display the positions i am getting. I need 4.0, 5.0 etc, not in between.[IMG]