Ejemplo n.º 1
0
 void OnDisable()
 {
     solver.RemoveSphere(this.index);
     solver = null;
 }
Ejemplo n.º 2
0
 void OnEnable()
 {
     solver = GameObject.FindObjectOfType <PBDSolver>();
     solver.AddSphere(this);
 }