add some extra assets FX and SFX
This commit is contained in:
@@ -366,7 +366,13 @@ public class zeroGravityRoomSystem : MonoBehaviour
|
||||
currentArtificialObjectGravity.setCurrentGravity (outsideGravityDirectionTransform.up);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
zeroGravityRoomObjectChecker currentZeroGravityRoomObjectChecker = newObject.GetComponent<zeroGravityRoomObjectChecker> ();
|
||||
|
||||
if (currentZeroGravityRoomObjectChecker != null) {
|
||||
currentZeroGravityRoomObjectChecker.setCurrentZeroGravityRoom (null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -441,7 +447,13 @@ public class zeroGravityRoomSystem : MonoBehaviour
|
||||
if (changeGravityForceForObjects && currentArtificialObjectGravity != null) {
|
||||
currentArtificialObjectGravity.setGravityForceValue (false, -newGravityForceForObjects);
|
||||
}
|
||||
}
|
||||
|
||||
zeroGravityRoomObjectChecker currentZeroGravityRoomObjectChecker = newObject.GetComponent<zeroGravityRoomObjectChecker> ();
|
||||
|
||||
if (currentZeroGravityRoomObjectChecker != null) {
|
||||
currentZeroGravityRoomObjectChecker.setCurrentZeroGravityRoom (this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool ContainsPoint (Vector2 currentPosition)
|
||||
@@ -710,9 +722,14 @@ public class zeroGravityRoomSystem : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public bool isRoomHasZeroGravityActive ()
|
||||
{
|
||||
return roomHasZeroGravity;
|
||||
}
|
||||
|
||||
//EDITOR FUNCTIONS
|
||||
public void renameRoomPoints ()
|
||||
|
||||
//EDITOR FUNCTIONS
|
||||
public void renameRoomPoints ()
|
||||
{
|
||||
for (int i = 0; i < roomPointsList.Count; i++) {
|
||||
roomPointsList [i].name = (i + 1).ToString ();
|
||||
|
||||
Reference in New Issue
Block a user