diff --git a/Assets/Scripts/AppleTree.cs b/Assets/Scripts/AppleTree.cs index 995f131..7432060 100644 --- a/Assets/Scripts/AppleTree.cs +++ b/Assets/Scripts/AppleTree.cs @@ -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(); - atScript.goldenAppleTime = true; - atScript.secondsBetweenAppleDrops *= 0.25f; + goldenAppleTime = true; + secondsBetweenAppleDrops *= 0.25f; } public void GoldenAppleTimeEnd() { - AppleTree atScript = Camera.main.GetComponent(); - atScript.goldenAppleTime = false; + goldenAppleTime = false; goldenAppleTimeCurrent = 0f; - atScript.secondsBetweenAppleDrops *= 4; + secondsBetweenAppleDrops *= 4; } // Update is called once per frame diff --git a/ProjectSettings/DynamicsManager.asset b/ProjectSettings/DynamicsManager.asset index 3118fcb..0ffdd59 100644 --- a/ProjectSettings/DynamicsManager.asset +++ b/ProjectSettings/DynamicsManager.asset @@ -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