PhishingAwarenessSimulation/Assets/Scripts/SceneOutcomeManager.cs
2025-05-28 10:27:04 +05:00

40 lines
776 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using UnityEngine;
public class SceneOutcomeManager : MonoBehaviour
{
public static SceneOutcomeManager Instance;
private void Awake()
{
Instance = this;
}
public void Reported(EmailData data)
{
Debug.Log("✅ Reported phishing! Show feedback.");
}
public void Clicked(EmailData data)
{
if (data.isPhishing)
{
Debug.Log("❌ SIMULATION FAILED CREDENTIALS STOLEN");
}
else
{
Debug.Log("Clicked safe link.");
}
}
public void Deleted(EmailData data)
{
Debug.Log("⚠️ Deleted. Show coaching tips.");
}
public void Ignored(EmailData data)
{
Debug.Log("⚠️ Ignored. Show educational nudge.");
}
}