Skip to content

Commit

Permalink
#7
Browse files Browse the repository at this point in the history
CU-1yx336

Co-Authored-By: Liam Arbuckle <allianceofdroidsla@gmail.com>
  • Loading branch information
Gizmotronn and IrisDroidology committed Jul 14, 2020
1 parent 56362f6 commit eec8b82
Show file tree
Hide file tree
Showing 24 changed files with 30 additions and 4,606 deletions.
13 changes: 13 additions & 0 deletions Intro to Unity/Assets/Scenes/Materials.unity
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ GameObject:
- component: {fileID: 565060985}
- component: {fileID: 565060984}
- component: {fileID: 565060983}
- component: {fileID: 565060987}
m_Layer: 0
m_Name: Capsule
m_TagString: Untagged
Expand Down Expand Up @@ -773,6 +774,18 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &565060987
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 565060982}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbe43451d6465af449082717bc23416b, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &683377387
GameObject:
m_ObjectHideFlags: 0
Expand Down
18 changes: 10 additions & 8 deletions Intro to Unity/Assets/Scripts/Mover.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ public class Mover : MonoBehaviour
// Update is called once per frame
void Update()
{
// Create vector3
//Vector3 newPos = new Vector3(5, 2, -2); // 5, 2, -2 = transform.position values for game object this script is attached to for the Vector3
//transform.position = newPos;
transform.position += new Vector3(0.1f, 01f, 0.1f); // every frame this object moves like this
transform.position += new Vector3(0.1f, 01f, 0.1f); * Time.deltaTime; // every second rather than every frame
transform.position += Vector3.one * Time.deltaTime; // .one = x, y, z
transform.position += new Vector3(0.1f, 01f, 0.1f) * Time.deltaTime * moveSpeed; // define moveSpeed in the inspector
transform.position += transform.forward * Time.deltaTime * moveSpeed; // Move capsule in its forward direction
transform.position += transform.forward * moveSpeed * Time.deltaTime;

if(transform.position.z >= 3 || transform.position.z <= -3)
{
moveSpeed = -moveSpeed;
}
// else if(transform.position.z <= -3)
//{
// moveSpeed = -moveSpeed
//}
}
}
2 changes: 1 addition & 1 deletion Intro to Unity/Assets/Scripts/Mover.cs.meta

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

Binary file modified Intro to Unity/Library/ArtifactDB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 6 additions & 6 deletions Intro to Unity/Library/CurrentLayout-default.dwlt
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,9 @@ MonoBehaviour:
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: 2a340000
m_LastClickedID: 13354
m_ExpandedIDs: 000000001434000016340000183400001a3400001c34000000ca9a3b
m_SelectedIDs: 2c340000
m_LastClickedID: 13356
m_ExpandedIDs: 0000000016340000183400001a3400001c3400001e34000000ca9a3b
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
Expand Down Expand Up @@ -379,7 +379,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 000000001434000016340000183400001a3400001c340000
m_ExpandedIDs: 0000000016340000183400001a3400001c3400001e340000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
Expand Down Expand Up @@ -502,8 +502,8 @@ MonoBehaviour:
m_SceneHierarchy:
m_TreeViewState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: 8c330000
m_LastClickedID: 13196
m_SelectedIDs: 2e360000
m_LastClickedID: 0
m_ExpandedIDs: 54fbffff
m_RenameOverlay:
m_UserAcceptedRename: 0
Expand Down
6 changes: 0 additions & 6 deletions Intro to Unity/Library/EditorInstance.json

This file was deleted.

Binary file modified Intro to Unity/Library/SourceAssetDB
Binary file not shown.
310 changes: 0 additions & 310 deletions Intro to Unity/Temp/UnityTempFile-21c2f7851f63dd943bd2ee9ea3d9a3a5

This file was deleted.

339 changes: 0 additions & 339 deletions Intro to Unity/Temp/UnityTempFile-23f4af924c0ad6345a32ff59192c7cdd

This file was deleted.

297 changes: 0 additions & 297 deletions Intro to Unity/Temp/UnityTempFile-27bc0e12f708f684c8f181ddd76c597a

This file was deleted.

337 changes: 0 additions & 337 deletions Intro to Unity/Temp/UnityTempFile-382750e7672366e4faedf3be1862c87b

This file was deleted.

521 changes: 0 additions & 521 deletions Intro to Unity/Temp/UnityTempFile-6c56fe1b430d6cf41b175f59e51b9b0d

This file was deleted.

306 changes: 0 additions & 306 deletions Intro to Unity/Temp/UnityTempFile-7312ea8cff7d71244966c8706713a95f

This file was deleted.

443 changes: 0 additions & 443 deletions Intro to Unity/Temp/UnityTempFile-81001e58e27f96749afcc678b14c6095

This file was deleted.

328 changes: 0 additions & 328 deletions Intro to Unity/Temp/UnityTempFile-9c0bd5faba8f65445bb79ee48c331282

This file was deleted.

353 changes: 0 additions & 353 deletions Intro to Unity/Temp/UnityTempFile-9f24e36d0e559cf429ca5eac55b8754b

This file was deleted.

389 changes: 0 additions & 389 deletions Intro to Unity/Temp/UnityTempFile-b77a0633849f3304394358a2c762baff

This file was deleted.

296 changes: 0 additions & 296 deletions Intro to Unity/Temp/UnityTempFile-b796100adaa316143965bd11d81eda96

This file was deleted.

297 changes: 0 additions & 297 deletions Intro to Unity/Temp/UnityTempFile-bacf989e36a86b045b74cb48e88b6d6c

This file was deleted.

369 changes: 0 additions & 369 deletions Intro to Unity/Temp/UnityTempFile-ecb014b56cf78754e98f9fae5d7c2759

This file was deleted.

0 comments on commit eec8b82

Please sign in to comment.