Skip to content

erensolmaz/Guard-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก๏ธ Guard Simulator

Unity C# URP License

A first-person security simulation game - Complete missions, escort VIPs, and protect the city!

๐ŸŒ Play Demo


๐Ÿ“– Project Overview

Guard Simulator is a first-person (FPS) security simulation game developed with the Unity game engine. Players take on the role of a security guard, completing various missions, engaging in dialogues with NPCs, and carrying out VIP escort tasks.

โœจ Key Features

  • ๐ŸŽฏ Quest System - Various missions with a dynamic quest system
  • ๐Ÿš— Vehicle Escort System - Safely transport VIPs to their destinations
  • ๐Ÿ’ฌ Dialogue System - Interactive conversations with NPCs
  • ๐Ÿค– Artificial Intelligence (AI) - Bot characters and enemy AI system
  • ๐ŸŽฌ Cinematic Camera - Impressive visual transitions and scenes
  • ๐ŸŽต Sound System - Dynamic music and sound effects management
  • ๐ŸŽฎ Main Menu - Modern and animated user interface

๐Ÿ› ๏ธ Technology Stack & Dependencies

Game Engine

Component Version
Unity 6000.1.3f1 (Unity 6)
Render Pipeline Universal Render Pipeline (URP) 17.2.0

Core Packages

Package Version Description
com.unity.inputsystem 1.14.2 New Input System
com.unity.ai.navigation 2.0.9 NavMesh AI navigation
com.unity.animation.rigging 1.3.0 Animation Rigging
com.unity.postprocessing 3.5.0 Post-processing effects
com.unity.shadergraph 17.2.0 Shader Graph
com.unity.timeline 1.8.9 Timeline animations
com.unity.visualscripting 1.9.7 Visual Scripting
com.unity.nuget.newtonsoft-json 3.2.1 JSON serialization

Asset Store Packages

  • Akila FPS Framework - First-person weapon and character system
  • Various 3D models and environment assets

๐Ÿ’ป Installation & Deployment Guide

Requirements

  • Unity Hub (latest version recommended)
  • Unity 6000.1.3f1 or higher
  • Git (for version control)
  • Visual Studio 2022 or JetBrains Rider (for C# development)

Cloning the Project

# Clone the repository
git clone https://github.com/YOUR_USERNAME/Guard-Simulator.git

# Navigate to the project directory
cd Guard-Simulator

Opening in Unity

  1. Open Unity Hub
  2. Click Add โ†’ Add project from disk
  3. Select the cloned project folder
  4. Make sure the correct Unity version is selected next to the project
  5. Click on the project to open it

First Run

  1. When the Unity project opens, the Library folder will be created automatically
  2. Wait for all assets to be imported
  3. Open the main menu scene from Assets/Scenes/MainMenu&Credits
  4. Press the Play button to test the game

๐ŸŽฎ Usage Instructions

Game Controls

Key Action
W A S D Movement
Mouse Look/Aim
Space Jump
Shift Sprint
E Interact
Esc Menu

Scenes

Scene Description
MainMenu&Credits Main menu and credits screen
GameScene Main gameplay scene
Sandbox Testing and development scene

Building the Game

  1. Open the File โ†’ Build Settings menu
  2. Select the target platform (Windows, macOS, Linux)
  3. Add the required scenes to the scene list
  4. Click the Build button
  5. Select the output folder

๐Ÿ”ง API Keys / Environment Variables

This project currently does not use any external APIs or services. All operations are performed locally.

For Future Integrations

If online features are added in the future, the following variables may be required:

// Example: Create a ScriptableObject in the Resources/Config folder
[CreateAssetMenu(fileName = "GameConfig", menuName = "Config/Game Configuration")]
public class GameConfig : ScriptableObject
{
    public string apiEndpoint;
    public string analyticsKey;
    // Other configuration values
}

โš ๏ธ Known Issues & Troubleshooting

Known Issues

Issue Status Solution
Shader compilation time may be long ๐ŸŸก Expected Wait during first launch, then no issues
Post-processing may reduce performance on some devices ๐ŸŸก Expected Reduce effects in Quality Settings

Troubleshooting

โŒ "Missing Reference" Errors

Solution: Right-click on the Assets folder โ†’ Reimport All

โŒ Pink/Magenta Materials

Solution: 
1. Edit โ†’ Rendering โ†’ Materials โ†’ Convert All Built-in Materials to URP
2. Change shaders to URP compatible shaders

โŒ Input System Not Working

Solution:
1. Edit โ†’ Project Settings โ†’ Player
2. Set "Active Input Handling" โ†’ "Both" or "Input System Package (New)"
3. Restart Unity

โŒ NavMesh AI Not Moving

Solution:
1. Make sure there is a NavMesh Surface component in your scene
2. Bake the NavMesh from Window โ†’ AI โ†’ Navigation

๐Ÿ“ Project Structure

Guard Simulator/
โ”œโ”€โ”€ Assets/
โ”‚   โ”œโ”€โ”€ Data/                    # Data files
โ”‚   โ”œโ”€โ”€ GV & URP/               # URP settings
โ”‚   โ”œโ”€โ”€ Imported Assets/        # Externally imported assets
โ”‚   โ”œโ”€โ”€ Materias/               # Materials
โ”‚   โ”œโ”€โ”€ Music/                  # Music files
โ”‚   โ”œโ”€โ”€ Prefabs/                # Prefab objects
โ”‚   โ”œโ”€โ”€ Scenes/                 # Game scenes
โ”‚   โ”‚   โ”œโ”€โ”€ GameScene/          # Main game scene
โ”‚   โ”‚   โ”œโ”€โ”€ MainMenu&Credits/   # Main menu
โ”‚   โ”‚   โ””โ”€โ”€ Sandbox/            # Test scene
โ”‚   โ””โ”€โ”€ Scripts/                # C# source code
โ”‚       โ”œโ”€โ”€ Character/          # Character and NPC scripts
โ”‚       โ”œโ”€โ”€ Editor/             # Editor tools
โ”‚       โ”œโ”€โ”€ Gameplay/           # Game mechanics
โ”‚       โ”œโ”€โ”€ Sound/              # Sound system
โ”‚       โ””โ”€โ”€ UI/                 # User interface
โ”œโ”€โ”€ Packages/                   # Unity package dependencies
โ”œโ”€โ”€ ProjectSettings/            # Project settings
โ””โ”€โ”€ README.md                   # This file

๐Ÿค Contributing

  1. Fork this repository
  2. Create a feature branch (git checkout -b feature/NewFeature)
  3. Commit your changes (git commit -m 'Add new feature')
  4. Push your branch (git push origin feature/NewFeature)
  5. Open a Pull Request

๐Ÿ“œ License

This project is licensed under the MIT License. See the LICENSE file for details.

MIT License

Copyright (c) 2025 Guard Simulator

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

๐Ÿ™ Credits & Acknowledgements

Tools and Resources Used

Special Thanks

  • Unity Technologies - For the amazing game engine
  • Asset Store community - For quality assets
  • Open source community - For inspiring projects

Experience the thrill of being a security guard with Guard Simulator! ๐Ÿ›ก๏ธ

Made with โค๏ธ and Unity

About

A first-person security simulation game built with Unity 6. Complete missions, escort VIPs, interact with NPCs, and experience dynamic gameplay with AI-driven characters.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors