// Use this for initialization void Start () { gameObject.name = gameObject.name + count; generator = GameObject.Find ("Generator").GetComponent<Generator> (); generator.PopulateLevel (gameObject.name); count++; select = Random.Range (0, 3); sword = GameObject.Find ("Sword").GetComponent<Transform> (); }