You are on page 1of 95

\ Excavated Landscape

\ Brick Inlay
\ Council Core
\ Births, Deaths
\ Brick Park
\ Clerks Office
\ Mayoral Suite
Landscape / Enclosure / Landscape








space. If, for example, instead of one constant surface, there were a series of smaller pixels that












\ Excavated Landscape
\ Brick Inlay
\ Council Core
\ Births, Deaths
\ Brick Park
\ Clerks Office
\ Mayoral Suite
Landscape / Enclosure / Landscape





using UnityEngine;
using System.Collections;
public class interact : MonoBehaviour {
private bool selected = false;

// Use this for initialization
void Start () {

}

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

renderer.material.color = Color.white;
selected = false;

}

public void OnLookEnter(){

selected = true;
renderer.material.color = Color.red;

if(Input.GetButtonDown("Fire1")){

transform.Translate(Vector3.up*1);
}
if(Input.GetButtonDown("Fire2")){

transform.Translate(Vector3.up*-1);
}

if(Input.GetButtonDown("Fire3")){
transform.RotateAroundLocal(Vector3.up,45);
}
}



using UnityEngine;
using System.Collections;
public class Select : MonoBehaviour {
public RaycastHit hit;
public GUITexture target;
public GUITexture notarget;
// Use this for initialization
void Start () {

}

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

target.enabled=false;
notarget.enabled=true;

Ray ray = Camera.main.ScreenPointToRay(new Vector3(Screen.width/2, Screen.height/2, 0));

if (Physics.Raycast(ray, out hit, 10)){

if(hit.collider.gameObject.GetComponent<interact>()!=null){

hit.collider.gameObject.GetComponent<interact>().OnLookEnter();
target.enabled=true;
notarget.enabled=false;

}

}

}
}

You might also like