Added in a brif character and movement controlsmaster
@ -1,8 +0,0 @@ | |||||
fileFormatVersion: 2 | |||||
guid: 6ecbfd0a046659943a69328c98ff0442 | |||||
timeCreated: 1520956522 | |||||
licenseType: Store | |||||
DefaultImporter: | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -1,8 +0,0 @@ | |||||
fileFormatVersion: 2 | |||||
guid: 88dfe89a073bdf748bf05396f5285cdd | |||||
timeCreated: 1539855222 | |||||
licenseType: Store | |||||
DefaultImporter: | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -1,8 +0,0 @@ | |||||
fileFormatVersion: 2 | |||||
guid: 11f44bcb01ea56742bb7177b439b1a4f | |||||
timeCreated: 1544798383 | |||||
licenseType: Store | |||||
DefaultImporter: | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -1,8 +0,0 @@ | |||||
fileFormatVersion: 2 | |||||
guid: 490e8164148c52c468b633dcc1c12d57 | |||||
timeCreated: 1516214129 | |||||
licenseType: Store | |||||
DefaultImporter: | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -1,8 +0,0 @@ | |||||
fileFormatVersion: 2 | |||||
guid: af7de8b91a27c254fa1bd24c01ae6e8e | |||||
timeCreated: 1540486619 | |||||
licenseType: Store | |||||
DefaultImporter: | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -1,8 +0,0 @@ | |||||
fileFormatVersion: 2 | |||||
guid: 191365b4aece81443875ae2bb7243b55 | |||||
timeCreated: 1539791396 | |||||
licenseType: Store | |||||
DefaultImporter: | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -1,8 +0,0 @@ | |||||
fileFormatVersion: 2 | |||||
guid: 4dc1afbcc68875c4780502f5e6b80158 | |||||
timeCreated: 1540292246 | |||||
licenseType: Store | |||||
DefaultImporter: | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -1,8 +0,0 @@ | |||||
fileFormatVersion: 2 | |||||
guid: 9a5e61a8b3421b944863d0946e32da0a | |||||
timeCreated: 1531836588 | |||||
licenseType: Store | |||||
DefaultImporter: | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -1,8 +0,0 @@ | |||||
fileFormatVersion: 2 | |||||
guid: b53d2f3b156ff104f90d4d7693d769c8 | |||||
timeCreated: 1540215707 | |||||
licenseType: Store | |||||
DefaultImporter: | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -1,8 +0,0 @@ | |||||
fileFormatVersion: 2 | |||||
guid: 4c816894a3147d343891060451241bfe | |||||
timeCreated: 1520621352 | |||||
licenseType: Store | |||||
DefaultImporter: | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -1,8 +1,8 @@ | |||||
fileFormatVersion: 2 | fileFormatVersion: 2 | ||||
guid: d1c0b77896049554fa4b635531caf741 | |||||
timeCreated: 1533059192 | |||||
licenseType: Store | |||||
guid: c6f5aa1cac3892c4ca8fada2784c18ec | |||||
folderAsset: yes | |||||
DefaultImporter: | DefaultImporter: | ||||
externalObjects: {} | |||||
userData: | userData: | ||||
assetBundleName: | assetBundleName: | ||||
assetBundleVariant: | assetBundleVariant: |
@ -0,0 +1,29 @@ | |||||
using System.Collections; | |||||
using System.Collections.Generic; | |||||
using UnityEngine; | |||||
public class CharacterMovement : MonoBehaviour { | |||||
public float Speed; | |||||
//Public movement functions :) | |||||
public void MoveLeft() | |||||
{ | |||||
GetComponent<Rigidbody>().AddForce(new Vector3(-Speed, 0.0f, 0.0f)); | |||||
} | |||||
public void MoveRight() | |||||
{ | |||||
GetComponent<Rigidbody>().AddForce(new Vector3(Speed, 0.0f, 0.0f)); | |||||
} | |||||
public void MoveUp() | |||||
{ | |||||
GetComponent<Rigidbody>().AddForce(new Vector3(0.0f, 0.0f, Speed)); | |||||
} | |||||
public void MoveDown() | |||||
{ | |||||
GetComponent<Rigidbody>().AddForce(new Vector3(0.0f, 0.0f, -Speed)); | |||||
} | |||||
} |
@ -0,0 +1,11 @@ | |||||
fileFormatVersion: 2 | |||||
guid: 23d333a191cbbeb45bcbb229fd3d4f06 | |||||
MonoImporter: | |||||
externalObjects: {} | |||||
serializedVersion: 2 | |||||
defaultReferences: [] | |||||
executionOrder: 0 | |||||
icon: {instanceID: 0} | |||||
userData: | |||||
assetBundleName: | |||||
assetBundleVariant: |
@ -1 +1 @@ | |||||
m_EditorVersion: 2018.2.2f1 | |||||
m_EditorVersion: 2018.2.5f1 |