Skip to content

Instantly share code, notes, and snippets.

@framundo
Last active August 2, 2016 17:05
Show Gist options
  • Save framundo/69f2eab09410e7fac7c77b46850e635d to your computer and use it in GitHub Desktop.
Save framundo/69f2eab09410e7fac7c77b46850e635d to your computer and use it in GitHub Desktop.
AddToStadium
using UnityEngine;
using System.Collections;
public class AddToStadium : MonoBehaviour {
void Start () {
GameObject stadium = GameObject.FindGameObjectWithTag ("Stadium");
transform.SetParent (stadium.transform, false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment