-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
-Fixed sizing issues -Tried out a build -Home Screen/Game Over
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using UnityEngine; | ||
using System.Collections; | ||
|
||
public class DecideBetweenFireAndStove : MonoBehaviour | ||
{ | ||
void Start() | ||
{ | ||
GameObject fireOrStove; | ||
|
||
if (GameController.stovePurchased) | ||
{ | ||
fireOrStove = Resources.Load("stove") as GameObject; | ||
} | ||
else | ||
{ | ||
fireOrStove = Resources.Load("campfire") as GameObject; | ||
} | ||
|
||
foreach (Transform child in transform) | ||
{ | ||
GameObject instantiatedFireOrStove = Instantiate(fireOrStove); | ||
instantiatedFireOrStove.transform.parent = child; | ||
instantiatedFireOrStove.transform.position = child.position; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using UnityEngine; | ||
using System.Collections; | ||
|
||
public class DecideWhichPondToShow : MonoBehaviour | ||
{ | ||
void Start() | ||
{ | ||
GameObject pond; | ||
|
||
if (GameController.waterFilterPurchased) | ||
{ | ||
pond = Instantiate(Resources.Load("pondFiltered") as GameObject); | ||
} | ||
else | ||
{ | ||
pond = Instantiate(Resources.Load("pond") as GameObject); | ||
} | ||
|
||
pond.transform.parent = transform; | ||
pond.transform.position = transform.position; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using UnityEngine; | ||
using System.Collections; | ||
|
||
public class DecideWhichWaterJugToShow : MonoBehaviour | ||
{ | ||
void Start() | ||
{ | ||
GameObject waterJug; | ||
|
||
if (GameController.waterJugCapPurchased) | ||
{ | ||
waterJug = Resources.Load("coveredWaterJug") as GameObject; | ||
} | ||
else | ||
{ | ||
waterJug = Resources.Load("waterJug") as GameObject; | ||
} | ||
|
||
foreach (Transform child in transform) | ||
{ | ||
GameObject instantiatedWaterJug = Instantiate(waterJug); | ||
instantiatedWaterJug.transform.parent = child; | ||
instantiatedWaterJug.transform.position = child.position; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using UnityEngine; | ||
using System.Collections; | ||
|
||
public class GoToHomeScreen : MonoBehaviour | ||
{ | ||
public void ButtonClick() | ||
{ | ||
Application.LoadLevel("homeScreen"); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using UnityEngine; | ||
using System.Collections; | ||
|
||
public class GoToMainGame : MonoBehaviour | ||
{ | ||
public void ButtonClick() | ||
{ | ||
Application.LoadLevel("mainGame"); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using UnityEngine; | ||
using System.Collections; | ||
|
||
public class ResetScore : MonoBehaviour | ||
{ | ||
void Start() | ||
{ | ||
GameController.score = 0; | ||
GameController.waterFilterPurchased = false; | ||
GameController.stovePurchased = false; | ||
GameController.mosquitoNetPurchased = false; | ||
GameController.waterJugCapPurchased = false; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.