Esempio n. 1
0
 //Collision leaving
 void OnCollisionExit(Collision collision)
 {
     ForceManager.StopEnvironmentForce(forceIndex);
     Debug.Log("Force stoped with index " + forceIndex);
 }
Esempio n. 2
0
 private void StopForces()
 {
     ForceManager.StopEnvironmentForce(SPRING_INDEX);
     ForceManager.StopEnvironmentForce(FRICTION_INDEX);
 }