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
// Ethan Bruins 2019 | |
// https://gist.github.com/Westerveld/fc81c4f51846c7153df8715fe5b76ddd | |
using UnityEngine; | |
using UnityEditor; | |
public class SetColliderSizeFromScale : EditorWindow | |
{ | |
//Shows up in the hierachy when placed in the GameObject menu | |
[MenuItem("GameObject/Convert Scale To Collider", false, 0)] |
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; | |
public class PeopleGen : MonoBehaviour | |
{ | |
[SerializeField] | |
Sprite[] eyes; | |
[SerializeField] | |
Sprite[] hair; | |
[SerializeField] | |
Sprite[] mouth; |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Tilemaps; | |
public class MiningController : MonoBehaviour { | |
public float castDistance = 1.0f; //How far we will cast | |
public Transform raycastPoint; //The origin point of our cast |