Resolving conflicts.
This commit is contained in:
parent
f0f6c6cbe6
commit
6e96537b25
7 changed files with 4 additions and 4 deletions
20
Assets/Scripts/CameraController.cs
Normal file
20
Assets/Scripts/CameraController.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class CameraController : MonoBehaviour {
|
||||
|
||||
public GameObject player;
|
||||
private Vector3 offset;
|
||||
|
||||
// Use this for initialization
|
||||
void Start ()
|
||||
{
|
||||
offset = transform.position;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void LateUpdate ()
|
||||
{
|
||||
transform.position = player.transform.position + offset;
|
||||
}
|
||||
}
|
||||
8
Assets/Scripts/CameraController.cs.meta
Normal file
8
Assets/Scripts/CameraController.cs.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ae2ca4205f0f47a4fa626bd81ae8c2da
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
21
Assets/Scripts/ShankTimer.cs
Normal file
21
Assets/Scripts/ShankTimer.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class ShankTimer : MonoBehaviour {
|
||||
|
||||
private float timer;
|
||||
public float length;
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
timer = 0f;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
timer += Time.deltaTime;
|
||||
|
||||
if (timer > length)
|
||||
GameObject.Destroy (gameObject);
|
||||
}
|
||||
}
|
||||
8
Assets/Scripts/ShankTimer.cs.meta
Normal file
8
Assets/Scripts/ShankTimer.cs.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 025a712113e797c408ae9865e9ac79c6
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
Loading…
Add table
Add a link
Reference in a new issue