Skip to content

Instantly share code, notes, and snippets.

View TheMehranKhan's full-sized avatar
I may be slow to respond.

Mehran TheMehranKhan

I may be slow to respond.
  • behind the desk
View GitHub Profile
@TheMehranKhan
TheMehranKhan / HealthBar.cs
Created October 27, 2023 20:34
A health bar that is represented by a slider UI element.
// Author: themehrankhan
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// A health bar that is represented by a slider UI element.
/// It can be used to display the player's current health in the game.
///
/// To use the health bar, simply attach this script to a game object in your scene
/*
## Open [https://scriptkit.com/scripts](https://scriptkit.com/scripts)
Browse scripts contribued by the Script Kit community. 🎉
To share your own script, post to our Script Kit GitHub Discussions:
[https://github.com/johnlindquist/kit/discussions](https://github.com/johnlindquist/kit/discussions)
*/
@TheMehranKhan
TheMehranKhan / dropbox-redirect.html
Last active June 3, 2023 17:33 — forked from mds/dropbox-redirect.html
A Simple JS Redirect
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- Replace with your own title -->
<title>Redirecting to old website...</title>
<script>
// Add your own shareable dropbox link
window.location.replace("https://tehmarkaz.framer.website");
</script>