add some extra assets FX and SFX
This commit is contained in:
@@ -40,6 +40,7 @@ public class artificialObjectGravity : MonoBehaviour
|
||||
public bool useCenterPointListForRigidbodies;
|
||||
public List<Transform> centerPointList = new List<Transform> ();
|
||||
|
||||
|
||||
RaycastHit hit;
|
||||
bool onGroundChecked;
|
||||
float groundAdherence = 10;
|
||||
@@ -48,7 +49,7 @@ public class artificialObjectGravity : MonoBehaviour
|
||||
bool objectActivated;
|
||||
float originalGravityForce;
|
||||
|
||||
Vector3 currentNormalDirection;
|
||||
Vector3 currentNormalDirection = Vector3.zero;
|
||||
|
||||
float minDistance;
|
||||
float currentDistance;
|
||||
@@ -350,6 +351,12 @@ public class artificialObjectGravity : MonoBehaviour
|
||||
public void setUseCenterPointListForRigidbodiesState (bool state, List<Transform> newCenterPointList)
|
||||
{
|
||||
useCenterPointListForRigidbodies = state;
|
||||
|
||||
centerPointList = newCenterPointList;
|
||||
}
|
||||
|
||||
public Vector3 getCurrentNormalDirection ()
|
||||
{
|
||||
return currentNormalDirection;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user