using UnityEngine;
using System.Collections;
public class asteroidMove : MonoBehaviour {
Vector3 MoveTo;
float _currSide;
Vector3 _startPos;
GameObject Asteroid;
bool final = false;
int _sideStarter;
void Start() {
_sideStarter = (transform.position.x == -200) ? 1000 : -200;
MoveTo = new Vector3 (_sideStarter, 0, Random.Range (-100, -700));
Debug.Log(_sideStarter);
Debug.Break ();
}
void FixedUpdate() {
if (final) {
Debug.Log ("Found! Going to: " + MoveTo);
Instantiate (new GameObject ("Going to"), MoveTo, Quaternion.identity);
Debug.Break ();
}
}
}
I’ve gathered that certain people who load their application have problems with that, and managed to fix it. But my “application” involves 0 LoadLevel instances. The Debug is triggered twice:
-200
UnityEngine.Debug:Log(Object)
asteroidMove:Start() (at -----/asteroidMove.cs:16)
Any grand ideas?