Made winning reset tree counter; Dry leaf duration 2 -> 1
This commit is contained in:
@@ -171,4 +171,4 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: c9a8039b5a5594b38924248d8b768f98, type: 3}
|
m_Script: {fileID: 11500000, guid: c9a8039b5a5594b38924248d8b768f98, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier: Assembly-CSharp::LeafDissolve
|
m_EditorClassIdentifier: Assembly-CSharp::LeafDissolve
|
||||||
maxStandingTime: 2
|
maxStandingTime: 1
|
||||||
|
|||||||
@@ -171,4 +171,4 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: c9a8039b5a5594b38924248d8b768f98, type: 3}
|
m_Script: {fileID: 11500000, guid: c9a8039b5a5594b38924248d8b768f98, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier: Assembly-CSharp::LeafDissolve
|
m_EditorClassIdentifier: Assembly-CSharp::LeafDissolve
|
||||||
maxStandingTime: 2
|
maxStandingTime: 1
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 7315bd6b8d3bf86c1a44f6ab2df7caf6
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -75,11 +75,12 @@ public class DamageHandler : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void OnCollisionEnter2D(Collision2D other)
|
private void OnCollisionEnter2D(Collision2D other)
|
||||||
{
|
{
|
||||||
if(other.collider.CompareTag("Finish")){
|
if(other.collider.CompareTag("Finish")){ //WIN THE GAME
|
||||||
|
TreeSpawner.treeCount = 0;
|
||||||
SceneManager.LoadScene(5, LoadSceneMode.Single);
|
SceneManager.LoadScene(5, LoadSceneMode.Single);
|
||||||
}
|
}
|
||||||
float fallSpeed = lastYVelocity;
|
float fallSpeed = lastYVelocity;
|
||||||
|
|
||||||
// Check if we hit hard enough
|
// Check if we hit hard enough
|
||||||
if (fallSpeed < -threshold)
|
if (fallSpeed < -threshold)
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ public class PatternSelecter : MonoBehaviour
|
|||||||
public int lastTreeNumber = 8;
|
public int lastTreeNumber = 8;
|
||||||
public SpriteRenderer spriteRenderer;
|
public SpriteRenderer spriteRenderer;
|
||||||
public Sprite endTreeSprite;
|
public Sprite endTreeSprite;
|
||||||
public BoxCollider2D confine;
|
private BoxCollider2D confine;
|
||||||
public CinemachineConfiner2D confiner2D;
|
private CinemachineConfiner2D confiner2D;
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
@@ -30,6 +30,7 @@ public class PatternSelecter : MonoBehaviour
|
|||||||
{
|
{
|
||||||
transform.GetChild(transform.childCount - 1).gameObject.SetActive(true);
|
transform.GetChild(transform.childCount - 1).gameObject.SetActive(true);
|
||||||
spriteRenderer.sprite = endTreeSprite;
|
spriteRenderer.sprite = endTreeSprite;
|
||||||
|
// spriteRenderer.color = new Color32(255, 228, 225,255);
|
||||||
transform.localScale = new Vector3(1.05f, 1.05f, 1.05f);
|
transform.localScale = new Vector3(1.05f, 1.05f, 1.05f);
|
||||||
transform.localPosition += new Vector3(0.27f,0.54f,0f);
|
transform.localPosition += new Vector3(0.27f,0.54f,0f);
|
||||||
confine.size += new Vector2(0f, 38f);
|
confine.size += new Vector2(0f, 38f);
|
||||||
|
|||||||
Reference in New Issue
Block a user