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 System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using Sirenix.OdinInspector; | |
| using Sirenix.Serialization; | |
| using UnityEngine; | |
| public class Inventory : MonoBehaviour | |
| { |
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
| /******************************************************************************* | |
| * Don't Be a Jerk: The Open Source Software License. | |
| * Adapted from: https://github.com/evantahler/Dont-be-a-Jerk | |
| ******************************************************************************* | |
| * _I_ am the software author - JohannesMP on Github. | |
| * _You_ are the user of this software. You might be a _we_, and that's OK! | |
| * | |
| * This is free, open source software. I will never charge you to use, | |
| * license, or obtain this software. Doing so would make me a jerk. | |
| * |
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 System.Collections.Generic; | |
| using System.IO; | |
| using System.Collections; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using System; | |
| using System.Threading; | |
| public class Utilities : EditorWindow | |
| { |
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
| /// | |
| /// Draw lines at runtime | |
| /// by Nothke | |
| /// unlicensed, aka do whatever you want with it | |
| /// made during Stugan 2016 :) | |
| /// ..(it's midnight, and Robbie clicks A LOT, LOUDLY!) | |
| /// | |
| /// Important: | |
| /// - Should be called in OnPostRender() (after everything else has been drawn) | |
| /// therefore the script that calls it must be attached to the camera |
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 System.Collections; | |
| // This is basically how the Super Metroid camera worked. Whichever direction you moved, the camera would | |
| // move in the same direction a multiple of the player's speed. Once the center of the camera moved a | |
| // certain distance from the player, the camera would lock on the player and move the same speed. Change | |
| // movement direction, and the camera would once again move more quickly to catch up and place itself | |
| // ahead of the player's movement. | |
| // Super Metroid also had area limits and locked certain axes based on where you were. For instance, if |
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
| #!/bin/sh | |
| # This is a skeleton of a bash daemon. To use for yourself, just set the | |
| # daemonName variable and then enter in the commands to run in the doCommands | |
| # function. Modify the variables just below to fit your preference. | |
| daemonName="DAEMON-NAME" | |
| pidDir="." | |
| pidFile="$pidDir/$daemonName.pid" |