Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- public class CameraUsageCoisas : MonoBehaviour {
- public GameObject edificio;
- List<string> Alertas = new List<string>();
- public float setX;
- public float setY;
- public float setZ;
- void Start () {
- transform.position = new Vector3 (500,100,500);
- }
- void Update () {
- setX = Input.mousePosition.x;
- setZ = Input.mousePosition.y;
- transform.position = new Vector3 (setX, setZ, setY);
- if(GameObject.Find("edificio").GetComponent<vidaEdificioScratch>().atacado == true){
- setX = GameObject.Find ("edificio").GetComponent<vidaEdificioScratch> ().goX;
- setY = GameObject.Find ("edificio").GetComponent<vidaEdificioScratch> ().goY;
- setZ = GameObject.Find ("edificio").GetComponent<vidaEdificioScratch> ().goZ;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement