add some extra assets FX and SFX
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class zeroGravityRoomObjectChecker : MonoBehaviour
|
||||
{
|
||||
[Header ("Main Setting")]
|
||||
[Space]
|
||||
|
||||
public bool checkGravityRoomStatesEnabled = true;
|
||||
|
||||
[Space]
|
||||
[Header ("Debug")]
|
||||
[Space]
|
||||
|
||||
public bool objectInsideGravityRoom;
|
||||
|
||||
public zeroGravityRoomSystem currentZeroGravityRoom;
|
||||
|
||||
|
||||
public void setCurrentZeroGravityRoom (zeroGravityRoomSystem gravityRoom)
|
||||
{
|
||||
if (!checkGravityRoomStatesEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
currentZeroGravityRoom = gravityRoom;
|
||||
|
||||
objectInsideGravityRoom = currentZeroGravityRoom != null;
|
||||
}
|
||||
|
||||
public void checkAddObjectToCurrentRoom (GameObject newObject)
|
||||
{
|
||||
if (!checkGravityRoomStatesEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (objectInsideGravityRoom) {
|
||||
currentZeroGravityRoom.addObjectToRoom (newObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user