Initial commit

This commit is contained in:
Vivian Lim 2017-04-03 20:20:41 -07:00
commit 438717a973
26 changed files with 128 additions and 0 deletions

34
.gitignore vendored Normal file
View File

@ -0,0 +1,34 @@
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
# Visual Studio 2015 cache directory
/.vs/
# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
# Unity3D generated meta files
*.pidb.meta
# Unity3D Generated File On Crash Reports
sysinfo.txt
# Builds
*.apk
*.unitypackage

21
Assets/CameraBehavior.cs Normal file
View File

@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraBehavior : MonoBehaviour {
public GameObject trackedObject;
private Camera camera;
private Vector3 offset;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.LookAt(trackedObject.gameObject.transform);
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: dcc86e00cac2a024593df9c767efef95
timeCreated: 1491196248
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

9
Assets/Materials.meta Normal file
View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 1ebfa128e42f9bc4186fb0c38aed1f57
folderAsset: yes
timeCreated: 1491195479
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 3a3edb52ef984224f8e93d55cc5b79a0
timeCreated: 1491195488
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

22
Assets/PlayerBehavior.cs Normal file
View File

@ -0,0 +1,22 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerBehavior : MonoBehaviour {
public float speed;
private Rigidbody rb;
// Use this for initialization
void Start () {
rb = GetComponent<Rigidbody>();
}
// Update is called once per frame
void FixedUpdate () {
float moveHorizontal = Input.GetAxis("Horizontal");
float moveVertical = Input.GetAxis("Vertical");
Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
rb.AddForce(movement * speed);
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 5be0c210f3ce76b4e9bf838838e48e9a
timeCreated: 1491195621
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/okay.unity Normal file

Binary file not shown.

8
Assets/okay.unity.meta Normal file
View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: fb4d3dfa2b6f4d041a0e4ccc5b2d5c62
timeCreated: 1491196707
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
m_EditorVersion: 5.6.0f3

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.