Created
May 5, 2014 19:16
-
-
Save codeimpossible/82c1be803d994d81ac13 to your computer and use it in GitHub Desktop.
ERMAH GERD WHY NO GIZMOS?!?!?!
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
[ExecuteInEditMode] | |
public class TileLayer : MonoBehaviour | |
{ | |
public Vector2 LayerSize; | |
public Vector2 CellSize; | |
public Color GridColor; | |
public bool DrawGridLines; | |
public bool DrawPaintbrushGuide; | |
public Vector3 TileSectionStart; | |
public Vector3 TileSelectionEnd; | |
public Dictionary<Vector3, GameObject> Map; | |
public void Awake() | |
{ | |
Debug.Log("AWAKE"); | |
} | |
public void OnEnable() | |
{ | |
Debug.Log("ENABLE"); | |
} | |
public void OnDrawGizmosSelected() | |
{ | |
Debug.Log("DRAW_GIZMOS_SELECTED"); | |
Gizmos.color = GridColor; | |
Gizmos.DrawCube(transform.position, new Vector3(100f, 100f, 100f)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment