Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -73,6 +73,9 @@ public class CastingBar : MonoBehaviour {
if (rayHit.transform.tag == "Generaal") {
rayHit.transform.GetComponent<TermiteGeneral>().DropDead(damageSpell1);
}
if (rayHit.transform.tag == "ZwarteWeduwe") {
rayHit.transform.GetComponent<ZwarteWeduwe>().DropDead(damageSpell1);
}
}
}
}
@@ -96,6 +99,9 @@ public class CastingBar : MonoBehaviour {
if (rayHit.transform.tag == "Generaal") {
rayHit.transform.GetComponent<TermiteGeneral>().DropDead(damageSpell2);
}
if (rayHit.transform.tag == "ZwarteWeduwe") {
rayHit.transform.GetComponent<ZwarteWeduwe>().DropDead(damageSpell2);
}
}
}
}
@@ -119,6 +125,9 @@ public class CastingBar : MonoBehaviour {
if (rayHit.transform.tag == "Generaal") {
rayHit.transform.GetComponent<TermiteGeneral>().DropDead(areaDamge);
}
if (rayHit.transform.tag == "ZwarteWeduwe") {
rayHit.transform.GetComponent<ZwarteWeduwe>().DropDead(areaDamge);
}
}
}
}
@@ -45,7 +45,7 @@ public class PlayerScript : MonoBehaviour {
public int Gold {
get { return gold; }
set {
goldText.text = "Crumbs: " + value;
goldText.text = "Bread Crumbs: " + value;
gold = value;
}
}
@@ -238,7 +238,7 @@ public class PlayerScript : MonoBehaviour {
if (other.gameObject.tag == "Shards") {
currentShards++;
Destroy(other.transform.gameObject);
shards.GetComponent<Text>().text = "Shards: " + currentShards.ToString("F0");
shards.GetComponent<Text>().text = "Energy Shards: " + currentShards.ToString("F0");
}

if (other.gameObject.name == "ToBoomstronk" && GetComponent<Quests>().quest1[6] == true)
@@ -232,9 +232,14 @@ public class Quests : MonoBehaviour {
schuurLevel.SetActive(true);
}*/

if(trigger.transform.tag == "Exit City" && quest1[11] == true){
Application.LoadLevel("Level 2");
quest1[11] = false;
if(trigger.transform.tag == "Exit City" == true){
if ( quest1[11] == true) {
Application.LoadLevel("Level 2");
quest1[11] = false;
}
else {
GameObject.Find("Player").GetComponent<PlayerScript>().currentHealth = 0;
}
}

//if(trigger.transform.tag == "Enemy"){
@@ -1,6 +1,7 @@
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityStandardAssets.ImageEffects;

public class ToSceneOne : MonoBehaviour {

@@ -12,7 +13,8 @@ public class ToSceneOne : MonoBehaviour {
public GameObject KeybindScreen;
public GameObject MenuButton;
public GameObject ExitToMenu;
public GameObject deadScreen;
public GameObject
Screen;
public GameObject background;
public GameObject loadingScreen;
public GameObject general;
@@ -18,8 +18,12 @@ public class VendorInventory : ChestInventory {
EmptySlots = slots;
base.Start();
GiveItem("Health Potion");
GiveItem("Energy Potion");
GiveItem("Rage Potion");
GiveItem("Wooden Sword");
GiveItem("Leather Boots");
GiveItem("Wooden Spear");
GiveItem("Golden Shield");

}

protected void GiveItem (string itemName) {