This file contains 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/bash | |
confirm() { | |
echo "Press RETURN to continue, or ^C to cancel."; | |
read -e ignored | |
} | |
RHEL_VER_FILE="/etc/redhat-release" | |
if [[ ! -f $RHEL_VER_FILE ]] |
This file contains 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
public static class CopyHelper | |
{ | |
/// <summary> | |
/// Copies values of the fields from one object to another. | |
/// </summary> | |
/// <param name="_fromObj">Object you want to copy from.</param> | |
/// <param name="_toObj">Object you want to copy to./param> | |
/// <returns>Returns _toObj</returns> | |
public static object CopyValues(this object _fromObj, object _toObj) |
This file contains 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
/* | |
Written by: Lucas Antunes (aka ItsaMeTuni), lucasba8@gmail.com | |
In: 2/15/2018 | |
The only thing that you cannot do with this script is sell it by itself without substantially modifying it. | |
*/ | |
using System; | |
using UnityEngine; | |
#if UNITY_EDITOR |
This file contains 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
/* | |
Then attach this class to that object. | |
How this code works: | |
Create a button by going into Edit > Project Settings > Input and add a button. | |
You bind a delegate to that button. | |
Then when this class's update function is called it will check if the button is pressed. | |
If it is pressed then the delegate assigned to the button will be invoked. | |
*/ |