Final patches for better spawn timing
This commit is contained in:
parent
d9ec878132
commit
a101278101
@ -21,7 +21,7 @@ public class AppleTree : MonoBehaviour
|
|||||||
// Rate at which RottenApples will be instantiated
|
// Rate at which RottenApples will be instantiated
|
||||||
public float secondsBetweenRottenAppleDrops = 2f;
|
public float secondsBetweenRottenAppleDrops = 2f;
|
||||||
// Rate at which RottenApples will be instantiated
|
// Rate at which RottenApples will be instantiated
|
||||||
public float secondsBetweenGoldenAppleDrops = 4f;
|
public float secondsBetweenGoldenAppleDrops = 10f;
|
||||||
public bool goldenAppleTime = false;
|
public bool goldenAppleTime = false;
|
||||||
public float goldenAppleTimeCurrent = 0f;
|
public float goldenAppleTimeCurrent = 0f;
|
||||||
public float goldenAppleTimeLimit = 5f;
|
public float goldenAppleTimeLimit = 5f;
|
||||||
@ -59,16 +59,14 @@ public class AppleTree : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void GoldenAppleTimeStart() {
|
public void GoldenAppleTimeStart() {
|
||||||
AppleTree atScript = Camera.main.GetComponent<AppleTree>();
|
goldenAppleTime = true;
|
||||||
atScript.goldenAppleTime = true;
|
secondsBetweenAppleDrops *= 0.25f;
|
||||||
atScript.secondsBetweenAppleDrops *= 0.25f;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void GoldenAppleTimeEnd() {
|
public void GoldenAppleTimeEnd() {
|
||||||
AppleTree atScript = Camera.main.GetComponent<AppleTree>();
|
goldenAppleTime = false;
|
||||||
atScript.goldenAppleTime = false;
|
|
||||||
goldenAppleTimeCurrent = 0f;
|
goldenAppleTimeCurrent = 0f;
|
||||||
atScript.secondsBetweenAppleDrops *= 4;
|
secondsBetweenAppleDrops *= 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
|
@ -18,7 +18,7 @@ PhysicsManager:
|
|||||||
m_ClothInterCollisionDistance: 0
|
m_ClothInterCollisionDistance: 0
|
||||||
m_ClothInterCollisionStiffness: 0
|
m_ClothInterCollisionStiffness: 0
|
||||||
m_ContactsGeneration: 1
|
m_ContactsGeneration: 1
|
||||||
m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5ffffffe4ffffffffffffffe4ffffffe4ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5fffffffefffffffffffffffefffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||||
m_AutoSimulation: 1
|
m_AutoSimulation: 1
|
||||||
m_AutoSyncTransforms: 0
|
m_AutoSyncTransforms: 0
|
||||||
m_ReuseCollisionCallbacks: 1
|
m_ReuseCollisionCallbacks: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user