This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UUID Replacement and Configuration File Generator | |
This script helps in generating configuration files with unique UUIDs and allows customization of network and proxy settings. It clears the directory of all files, generates new UUIDs, replaces the UUID in a given template, and creates a zip file containing the generated configuration files. | |
## Features: | |
- Uninstalls conflicting packages. | |
- Installs necessary libraries. | |
- Clears the directory. | |
- Generates unique UUIDs. | |
- Replaces UUIDs in template content. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: themehrankhan | |
License: MIT License | |
Description: | |
This code block provides a UI manager functionality in Unity. It manages UI elements and triggers events on button clicks. | |
Usage: | |
1. Create an empty game object in Unity and attach this script to it. | |
2. Set the UI elements and button click events in the inspector. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: themehrankhan | |
License: MIT License | |
Description: | |
This code block provides a power-up system functionality in Unity. It allows the player to collect power-ups and apply their effects. | |
Usage: | |
1. Attach this script to the power-up object in Unity. | |
2. Set the power-up effect and duration in the inspector. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: themehrankhan | |
License: MIT License | |
Description: | |
This code block provides a basic enemy AI functionality in Unity. It allows the enemy to follow and attack the player. | |
Usage: | |
1. Attach this script to the enemy object in Unity. | |
2. Set the player object in the inspector. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: themehrankhan | |
License: MIT License | |
Description: | |
This code block provides a basic player movement functionality in Unity. It allows the player to move forward, backward, left, and right using the arrow keys or WASD keys. | |
Usage: | |
1. Attach this script to the player object in Unity. | |
2. Ensure the player object has a Rigidbody component attached. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: themehrankhan | |
License: MIT License | |
Description: | |
This code block provides a camera follow functionality in Unity. It allows the camera to smoothly follow the player object. | |
Usage: | |
1. Attach this script to the camera object in Unity. | |
2. Set the target object (player object) in the inspector. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
/// <summary> | |
/// Keeps track of the player's score and updates a score text UI element. | |
/// | |
/// This script can be used to centralize the game's score logic, making it easier to maintain and update. | |
/// | |
/// To use the score manager, simply attach this script to a game object in your scene | |
/// and assign the score text UI element to the `scoreText` public property. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: themehrankhan | |
using UnityEngine; | |
/// <summary> | |
/// A collectible item that gives points to the player's score when the player collides with it. | |
/// </summary> | |
public class CollectibleItem : MonoBehaviour | |
{ | |
/// <summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: themehrankhan | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
/// <summary> | |
/// A game over manager that is responsible for showing the game over UI and handling game restart. | |
/// | |
/// This manager can be used to centralize the game's game over logic, making it easier to maintain and update. | |
/// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Mapbox.Unity.Map; | |
using Mapbox.Unity.Location; | |
/// <summary> | |
/// A location-based game that uses Mapbox to check if the player is within a target radius. | |
/// </summary> | |
public class LocationBasedGame : MonoBehaviour | |
{ | |
/// <summary> |
NewerOlder