Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
     }
 }