Implementation of shanking mechanics.
This commit is contained in:
parent
e3bca32a6e
commit
f0f6c6cbe6
24 changed files with 523 additions and 25 deletions
20
Assets/CameraController.cs
Normal file
20
Assets/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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue