public void addFollower(GameObject obj)
{
followerGameObjects.Add(obj);
}
private void createFollower(MoCapRigidBody rigidbody){ // create object GameObject obj = (GameObject)Instantiate (rigidBodyObject); // make it follow the specified rigidbody (always adopt its position and rotation) rigidbody.addFollower (obj); // make the new object a child of our main object (this) obj.transform.SetParent (this.transform); }