//private GUIText guiInfo; // Use this for initialization void Start() { CP = GameObject.Find("_CP").GetComponent<_CP>(); //guiInfo = GameObject.Find("GUI_Info").guiText; //// Connect Application.ExternalCall("Connect", "Connected!"); }
// Use this for initialization void Start() { // Get CP CP = GameObject.Find("_CP").GetComponent<_CP>(); HTTP = GameObject.Find("_HTTP").GetComponent<_HTTP>(); //guiBounces = GameObject.Find("GUI_Bounces").guiText; // Set random rotation on start Vector3 randRot; randRot = new Vector3(Random.Range(0, 360), Random.Range(0, 360), Random.Range(0, 360)); transform.rotation = Quaternion.Euler(randRot); rigidbody.angularVelocity = new Vector3(Random.Range(-10, 10), Random.Range(-10, 10), Random.Range(-10, 10)); lastPos = Vector3.zero; }