Пример #1
0
 // Update is called once per frame
 void FixedUpdate()
 {
     repulse.Repulsion();
     repulse.DistanceForce();
 }
Пример #2
0
 // Update is called once per frame
 void FixedUpdate()
 {
     attract.Attraction();
     attract.DistanceForce();
 }