I made a script that has “AddForce” to move a block when I hit a key, tried adding more, script does not work anymore. Help?!?!??!??
We can’t help, because you didn’t give us anything to work with.
Does it throw any errors?
What version of unity are you using? Did the upgrade break the script?
Post the script here, and use code tags.
Sorry, I got it fixed with my co-op boss, however I do have a new problem and he doesn’t know how to fix it either. I keep getting a cs1014(A get or set accessor expect)
using UnityEngine;
using System.Collections;
public class GameManager : MonoBehaviour {
public static int currentScore;
public static int highscore;
public static int currentLevel = 0;
public static int unlockedLevel;
public GUISkin skin;
public float startTime;
private string currentTIme;
void update
{
startTime -= Time.deltaTime; //the problem happens right here on start time
currentTime = startTime.ToString();
print (currentTime);
}
void Start ()
{
DontDestroyOnLoad (gameObject);
}
public static void CompleteLevel()
{
if (currentLevel < 2) {
currentLevel += 1;
Application.LoadLevel (currentLevel);
}
else
{
print (“Game over.”);
}
}
}
void update
{
should be Update()