Пример #1
0
 // Update is called once per frame
 private void Update()
 {
     gravityMultiplied = gravity * gravityMultiplier;
     CustomCollider[]  colliders = FindObjectsOfType <CustomCollider>();
     RigidBodyScript[] rbs       = FindObjectsOfType <RigidBodyScript>();
     forceManager.AddRB(rbs);
     collisionManager.AddNewCollider(colliders);
     forceManager.ForceUpdate();
     collisionManager.CollisionUpdate();
 }