Fixed thingy
This commit is contained in:
@@ -548,6 +548,11 @@ PrefabInstance:
|
||||
propertyPath: m_Name
|
||||
value: ShieldBar
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 582498797338587669, guid: c0a03ce6c4f39224299267b83719ceb7,
|
||||
type: 3}
|
||||
propertyPath: Thing
|
||||
value:
|
||||
objectReference: {fileID: 1108141262}
|
||||
- target: {fileID: 582498797338587669, guid: c0a03ce6c4f39224299267b83719ceb7,
|
||||
type: 3}
|
||||
propertyPath: Spawner
|
||||
@@ -865,6 +870,18 @@ Transform:
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 8020063586600593708}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &1108141262 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 6524590693600647859, guid: e29ce1fe47a855c4e907d4312c9e9d6e,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1758685209}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d84633c3f717e0d4f834bb2514e64c35, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1001 &1141151236
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace InterfaceOff.WorldScene
|
||||
body = GetComponent<Rigidbody>();
|
||||
|
||||
Vector3 pos = transform.localPosition;
|
||||
pos.y = Mathf.Infinity;
|
||||
pos.y = 100f;
|
||||
transform.localPosition = pos;
|
||||
}
|
||||
|
||||
|
||||
@@ -95,17 +95,24 @@ namespace InterfaceOff
|
||||
|
||||
public void AlertOfDespawnedWindow() => SpawnedWindowCount--;
|
||||
|
||||
private int SpawnyThingyMajig = 900; // Sky chose dis
|
||||
|
||||
private void FixedUpdate()
|
||||
{
|
||||
/* Spawns new windows whilst active */
|
||||
if (AutoSpawn)
|
||||
{
|
||||
/* Has a random choice for the PasswordField to show up */
|
||||
if (Random.Range(0, 1000) == 500)
|
||||
if (SpawnyThingyMajig == 0)
|
||||
{
|
||||
PasswordField.SetActive(true);
|
||||
SpawnyThingyMajig = Random.Range(200, 1000);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
SpawnyThingyMajig--;
|
||||
}
|
||||
|
||||
/* Calculates the current max spawn time */
|
||||
const int TICKS_PER_SECOND = 20; // Unity constant
|
||||
const int MIN_SPAWN_TIME = 2 * TICKS_PER_SECOND;
|
||||
|
||||
Reference in New Issue
Block a user