Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Assets/Code/Scripts/Smishing03.meta

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

10 changes: 10 additions & 0 deletions Assets/Code/Scripts/Smishing03/EmailCardTag.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using UnityEngine;

namespace Smishing03
{
public class EmailCardTag : MonoBehaviour
{
// Tick this in the Inspector for phishing cards; leave off for safe cards.
public bool isPhishing;
}
}
2 changes: 2 additions & 0 deletions Assets/Code/Scripts/Smishing03/EmailCardTag.cs.meta

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

27 changes: 27 additions & 0 deletions Assets/Code/Scripts/Smishing03/ReturnToSpawnOnDrop.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using UnityEngine;

namespace Smishing03
{
public class ReturnToSpawnOnDrop : MonoBehaviour
{
Vector3 startPos; Quaternion startRot; Rigidbody rb;

void Awake()
{
startPos = transform.position;
startRot = transform.rotation;
rb = GetComponent<Rigidbody>();
}

public void ResetToSpawn()
{
if (!rb) rb = GetComponent<Rigidbody>();
if (rb)
{
rb.linearVelocity = Vector3.zero;
rb.angularVelocity = Vector3.zero;
}
transform.SetPositionAndRotation(startPos, startRot);
}
}
}
2 changes: 2 additions & 0 deletions Assets/Code/Scripts/Smishing03/ReturnToSpawnOnDrop.cs.meta

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

18 changes: 18 additions & 0 deletions Assets/Code/Scripts/Smishing03/SocketJudgeSimple.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using UnityEngine;

namespace Smishing03
{
public enum ExpectedType { Phishing, Safe }

public class SocketJudgeSimple : MonoBehaviour
{
public ExpectedType expected;

public bool IsCorrect(EmailCardTag card)
{
if (!card) return false;
return (card.isPhishing && expected == ExpectedType.Phishing)
|| (!card.isPhishing && expected == ExpectedType.Safe);
}
}
}
2 changes: 2 additions & 0 deletions Assets/Code/Scripts/Smishing03/SocketJudgeSimple.cs.meta

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

24 changes: 12 additions & 12 deletions Assets/Scenes/MainMenu.unity
Original file line number Diff line number Diff line change
Expand Up @@ -2472,7 +2472,7 @@ AudioSource:
m_PlayOnAwake: 1
m_Volume: 0.1
m_Pitch: 1
Loop: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Expand Down Expand Up @@ -3498,7 +3498,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
scene_names:
- PasswordSecurity01
-
- PasswordSecurity02
--- !u!1 &557912165
GameObject:
Expand Down Expand Up @@ -4330,7 +4330,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1717954561962503726, guid: f6336ac4ac8b4d34bc5072418cdc62a0, type: 3}
propertyPath: m_LocalPosition.y
value: -1.636
value: -2
objectReference: {fileID: 0}
- target: {fileID: 1717954561962503726, guid: f6336ac4ac8b4d34bc5072418cdc62a0, type: 3}
propertyPath: m_LocalPosition.z
Expand Down Expand Up @@ -4776,7 +4776,7 @@ MonoBehaviour:
m_MultiSelect: 0
m_Options:
m_Options:
- m_Text: Basics of Password Security
- m_Text: A1
m_Image: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0}
- m_Text: MFA Fatigue and Social Engineering
Expand Down Expand Up @@ -7832,7 +7832,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
scene_names:
- SafeWebBrowsing01
- Smishing_IncidentReportScene
- Smishing03
--- !u!1 &1255233518
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -9565,15 +9565,15 @@ MonoBehaviour:
m_MultiSelect: 0
m_Options:
m_Options:
- m_Text: Verifying the Source Before Responding
- m_Text: Smishing Incident Report
m_Image: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0}
m_Color: {r: 0, g: 0, b: 0, a: 0}
m_OnValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1909499486}
m_TargetAssemblyTypeName: Menu.Activity_DropDown, Assembly-CSharp
m_MethodName: HandleInputData
- m_Target: {fileID: 102900000, guid: 6c5569b04da447c4da4b189ebdf19400, type: 3}
m_TargetAssemblyTypeName: Activity_DropDown, Assembly-CSharp
m_MethodName:
m_Mode: 0
m_Arguments:
m_ObjectArgument: {fileID: 0}
Expand Down Expand Up @@ -11514,7 +11514,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
scene_names:
- Smishing02
- Smishing03
--- !u!1 &1943386682
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -12062,7 +12062,7 @@ Transform:
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -3.5}
m_LocalScale: {x: 0.8, y: 0.8, z: 0.8}
m_LocalScale: {x: 0.9, y: 0.9, z: 0.9}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3860156106623266304}
Expand Down
Loading