Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -124,7 +124,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: de7092d9750b7f64cb29750280ef8672, type: 3}
m_Name:
m_EditorClassIdentifier:
prefab: {fileID: 1036305117416056, guid: dac14feb7cf0b1240b5f6094fb80b565, type: 2}
prefab: {fileID: 1732589249223542, guid: 168596a28d995b44198f1cb0da7d640f, type: 2}
--- !u!114 &114510450636248182
MonoBehaviour:
m_ObjectHideFlags: 1

Large diffs are not rendered by default.

@@ -20,6 +20,7 @@ public class FallingObjectsTrap : MonoBehaviour {

void OnTriggerEnter()
{

activated = true;
ActivateTrap();
}
@@ -29,7 +30,7 @@ void ActivateTrap()
for (int count = 0; count < objects.Length; count++)
{

objects[count].transform.GetComponent<TrapBoulder>().active = true;
objects[count].transform.GetComponent<TrapBoulder>().Activate();
// if (object[count].transform.GetComponent<ActivateKey>().active == false)
// {
// return;
@@ -5,24 +5,20 @@

public class InteractObject : MonoBehaviour
{
private GameObject highLightObject;

public GameObject player;
public Text interactText;
public float rayRange;
private float DashLenght = 8;

// Use this for initialization
void Start(){
interactText = CanvasManager.instance.interactText;
void Start()
{

}

// Update is called once per frame
void Update()
{
RaycastObject();

HighlightObject ();

}

public void RaycastObject()
@@ -43,21 +39,4 @@ public void RaycastObject()
interactText.text = "";
}
}

private void HighlightObject(){
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit;

if (Physics.Raycast (ray, out hit, 50f) && (hit.collider.gameObject.tag == "Object")) {
highLightObject = hit.collider.gameObject;
hit.collider.gameObject.GetComponent<HighlightCube> ().distance = hit.distance;
hit.collider.gameObject.GetComponent<HighlightCube> ().hit = true;

} else {
if (highLightObject != null)
highLightObject.GetComponent<HighlightCube> ().hit = false;
}


}
}
@@ -0,0 +1,34 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RotateBridge : MonoBehaviour {

public float amountToRotate;
public GameObject objectToRotate;
private bool active;

// Use this for initialization
void Start () {
active = false;
}

// Update is called once per frame
void Update () {

}

private void OnMouseDown()
{
if (active == false)
{
objectToRotate.transform.Rotate(0, amountToRotate, 0, Space.Self);
active = true;
}
else if( active == true)
{
objectToRotate.transform.Rotate(0, -amountToRotate, 0, Space.Self);
active = false;
}
}
}
@@ -4,8 +4,8 @@

public class TrapBoulder : MonoBehaviour {
public float fallDelay;
public bool active;
public bool consumed;
private bool active;
private bool consumed;
Rigidbody rigid;

// Use this for initialization
@@ -40,4 +40,19 @@ public void Fall()

}
}

void OnCollisionEnter(Collision collision)
{
if (collision.gameObject.tag == "Player")
{
Destroy(collision.gameObject);
}
}

public void Activate()
{
active = true;
}


}
@@ -0,0 +1,18 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class particleScript : MonoBehaviour {

public Vector3 speed;

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {
transform.Rotate(speed * Time.deltaTime);
}
}