Final patches for better spawn timing

This commit is contained in:
Trianta 2024-02-08 21:13:42 -06:00
parent d9ec878132
commit a101278101
2 changed files with 6 additions and 8 deletions

View File

@ -21,7 +21,7 @@ public class AppleTree : MonoBehaviour
// Rate at which RottenApples will be instantiated
public float secondsBetweenRottenAppleDrops = 2f;
// Rate at which RottenApples will be instantiated
public float secondsBetweenGoldenAppleDrops = 4f;
public float secondsBetweenGoldenAppleDrops = 10f;
public bool goldenAppleTime = false;
public float goldenAppleTimeCurrent = 0f;
public float goldenAppleTimeLimit = 5f;
@ -59,16 +59,14 @@ public class AppleTree : MonoBehaviour
}
public void GoldenAppleTimeStart() {
AppleTree atScript = Camera.main.GetComponent<AppleTree>();
atScript.goldenAppleTime = true;
atScript.secondsBetweenAppleDrops *= 0.25f;
goldenAppleTime = true;
secondsBetweenAppleDrops *= 0.25f;
}
public void GoldenAppleTimeEnd() {
AppleTree atScript = Camera.main.GetComponent<AppleTree>();
atScript.goldenAppleTime = false;
goldenAppleTime = false;
goldenAppleTimeCurrent = 0f;
atScript.secondsBetweenAppleDrops *= 4;
secondsBetweenAppleDrops *= 4;
}
// Update is called once per frame

View File

@ -18,7 +18,7 @@ PhysicsManager:
m_ClothInterCollisionDistance: 0
m_ClothInterCollisionStiffness: 0
m_ContactsGeneration: 1
m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5ffffffe4ffffffffffffffe4ffffffe4ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5fffffffefffffffffffffffefffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
m_AutoSimulation: 1
m_AutoSyncTransforms: 0
m_ReuseCollisionCallbacks: 1