Skip to content

Commit

Permalink
Added camera following script to be attached to MainCamera. All else …
Browse files Browse the repository at this point in the history
…can be ignored.
  • Loading branch information
aaronkarp123 committed Feb 17, 2016
1 parent f18e554 commit 5cb8ae5
Show file tree
Hide file tree
Showing 10 changed files with 95 additions and 1 deletion.
15 changes: 15 additions & 0 deletions Assets/CameraMovement.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using UnityEngine;
using System.Collections;

public class CameraMovement : MonoBehaviour {

// Use this for initialization
void Start () {

}

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

}
}
12 changes: 12 additions & 0 deletions Assets/CameraMovement.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Assets/Prefabs/World Units/WorldBearPlayer.prefab
Binary file not shown.
2 changes: 1 addition & 1 deletion Assets/Prefabs/World Units/WorldBearPlayer.prefab.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Assets/Scenes/World.unity
Binary file not shown.
16 changes: 16 additions & 0 deletions Assets/Scripts/CameraRunner.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using UnityEngine;
using System.Collections;

public class CameraRunner : MonoBehaviour {

public Transform player;
public Vector3 offset;

void start () {
}

void Update ()
{
transform.position = new Vector3 (player.position.x + offset.x, 0, offset.z); // Camera follows the player with specified offset position
}
}
12 changes: 12 additions & 0 deletions Assets/Scripts/CameraRunner.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Assets/Scripts/Combat/Attacks/BasicAttack.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Assets/Scripts/NewBehaviourScript.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using UnityEngine;
using System.Collections;

public class NewBehaviourScript : MonoBehaviour {

// Use this for initialization
void Start () {

}

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

}
}

This comment has been minimized.

Copy link
@fluffywaffles

fluffywaffles Feb 24, 2016

Member

This shouldn't have been committed?

12 changes: 12 additions & 0 deletions Assets/Scripts/NewBehaviourScript.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5cb8ae5

Please sign in to comment.