Skip to content

Commit

Permalink
Finished Lesson D
Browse files Browse the repository at this point in the history
  • Loading branch information
jayrock3000 committed Feb 13, 2022
1 parent 0c7cfb1 commit d160f02
Show file tree
Hide file tree
Showing 7 changed files with 4,156 additions and 517 deletions.
122 changes: 90 additions & 32 deletions Assets/Scenes/Prototype 1.unity
Original file line number Diff line number Diff line change
Expand Up @@ -557,43 +557,43 @@ PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_TransformParent: {fileID: 1276066625}
m_Modifications:
- target: {fileID: 194656, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_Name
value: Blockade
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_RootOrder
value: 4
value: 0
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalPosition.x
value: 0
value: -21.038204
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalPosition.y
value: 0
value: -6.000188
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalPosition.z
value: 33.23
value: 28.3177
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.x
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.y
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.z
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down Expand Up @@ -798,6 +798,11 @@ Rigidbody:
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!4 &275989242 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
m_PrefabInstance: {fileID: 2108995092}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &297540138
PrefabInstance:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1055,6 +1060,11 @@ GameObject:
m_CorrespondingSourceObject: {fileID: 194656, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
m_PrefabInstance: {fileID: 213554794}
m_PrefabAsset: {fileID: 0}
--- !u!4 &498163298 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
m_PrefabInstance: {fileID: 213554794}
m_PrefabAsset: {fileID: 0}
--- !u!54 &498163299
Rigidbody:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -2428,6 +2438,40 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 4.999991, y: 0, z: 20.000004}
m_Center: {x: -2.4999878, y: 0, z: 0.000000067055225}
--- !u!1 &1276066624
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1276066625}
m_Layer: 0
m_Name: Blockades
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1276066625
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1276066624}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 23.528345, y: 4.2389536, z: -11.38988}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 498163298}
- {fileID: 275989242}
- {fileID: 1277379220}
- {fileID: 1650618435}
m_Father: {fileID: 1385500138}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1277379215 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 194656, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
Expand All @@ -2449,6 +2493,11 @@ Rigidbody:
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!4 &1277379220 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
m_PrefabInstance: {fileID: 1337371214}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1301775483
PrefabInstance:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -2627,43 +2676,43 @@ PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_TransformParent: {fileID: 1276066625}
m_Modifications:
- target: {fileID: 194656, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_Name
value: Blockade (2)
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_RootOrder
value: 6
value: 2
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalPosition.x
value: 0
value: -21.038204
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalPosition.y
value: 0
value: -6.000188
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalPosition.z
value: 83.229996
value: 78.317696
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.x
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.y
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.z
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down Expand Up @@ -2793,6 +2842,7 @@ Transform:
- {fileID: 1312232381}
- {fileID: 2093379048}
- {fileID: 1717769828}
- {fileID: 1276066625}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
Expand Down Expand Up @@ -3039,6 +3089,9 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
speed: 15
turnSpeed: 15
horizontalInput: 0
verticalInput: 0
--- !u!54 &1522630480
Rigidbody:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -3404,43 +3457,43 @@ PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_TransformParent: {fileID: 1276066625}
m_Modifications:
- target: {fileID: 194656, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_Name
value: Blockade (3)
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_RootOrder
value: 7
value: 3
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalPosition.x
value: 0
value: -21.038204
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalPosition.y
value: 0
value: -6.000188
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalPosition.z
value: 108.229996
value: 103.317696
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.x
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.y
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.z
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down Expand Up @@ -3477,6 +3530,11 @@ Rigidbody:
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!4 &1650618435 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
m_PrefabInstance: {fileID: 1650618429}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1675987504
PrefabInstance:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -4292,43 +4350,43 @@ PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_TransformParent: {fileID: 1276066625}
m_Modifications:
- target: {fileID: 194656, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_Name
value: Blockade (1)
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_RootOrder
value: 5
value: 1
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalPosition.x
value: 0
value: -21.038204
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalPosition.y
value: 0
value: -6.000188
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalPosition.z
value: 58.23
value: 53.3177
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.x
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.y
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalRotation.z
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 490414, guid: cb04eea70ee14ab49b68d12e2cbbf680, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down
51 changes: 51 additions & 0 deletions Assets/Scripts/CompileError.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CompileError : MonoBehaviour
{
// Just gonna comment this out

/*
public float sunAngleSpeed = 2.0f;
public Light directionalLight;
private Vector3 _sunRot;
private Color _twilight = new Color(50 / 255.0f, 10 / 255.0f, 130 / 255.0f);
// Start is called before the first frame update
void Start()
{
_sunRot = new Vector3(180, -90);
directionalLight.transform.eulerAngles = _sunRot;
RenderSettings.skybox.SetColor("_Tint", _twilight);
}
// Update is called once per frame
void Update()
{
currentRotation = Time.deltaTime * sunAngleSpeed;
transform.RotateAround(Vector3.zero, Vector3.black, currentRotation);
_sunRot.x -= currentRotation;
directionalLight.eulerAngles = _sunRot;
float colorAngle = Mathf.Sin(Mathf.Deg2Rad * _sunRot.x);
Color skyTint;
if (colorAngle < )
{
skyTint = Color.Lerp(_twilight, Color.black, -1 * colorAngle);
}
else if
{
skyTint = Color.Lerp(_twilight, new Color(.5f, .5f, .5f), colorAngle);
}
RenderSettings.skybox.SetColor("_Tint", skyTint);
RenderSettings.skybox.SetFloat("_Rotation", Time.time);
}
*/
}
11 changes: 11 additions & 0 deletions Assets/Scripts/CompileError.cs.meta

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

Loading

0 comments on commit d160f02

Please sign in to comment.