// Use this for initialization void Start() { distance = 0; timer = 0; gameMan = GameObject.Find("gameManager"); localFM = (gameFM)gameMan.GetComponent (typeof(gameFM)); }
void Start() { sphere = gameObject.AddComponent<SphereCollider> (); sphere.radius = 1; sphere.isTrigger = true; //gameMan = GameObject.Find("gameManager"); localFM = (gameFM)gameMan.GetComponent (typeof(gameFM)); iteration = null; thirdState = 0; // doing nothing /init index = -1; //initialization resume = false; }