public void makeClump() { pack (); parent = (Clump)GameObject.Instantiate(clump); parent.transform.position = transform.position; parent.speed = stats.speed; transform.SetParent(parent.transform); parent.add(stats); }
void Start() { base.Start(); if(parent){ //pack (); //stats.rigidbody.isKinematic = true; this.transform.parent = parent.transform; this.transform.localPosition = parent.placeNew(); parent.add(this.stats); } }