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
using UnityEngine; | |
public class Test : MonoBehaviour { | |
public TpAtlas atlas; | |
public TpSprite sprite; | |
void OnEnable() { | |
var text = Resources.Load<TextAsset>("ui").text; | |
atlas = JsonUtility.FromJson<TpAtlas>(text); | |
var size = atlas.size; |
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
{ | |
"workbench.colorTheme": "Monokai", | |
"git.autofetch": true, | |
"window.zoomLevel": 1, | |
"editor.tokenColorCustomizations": { | |
"[Monokai]": { | |
"comments": "#74705E", | |
"strings": "#E6DB73", | |
"numbers": "#AE81FF", | |
"functions": "#FD971E", |
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
using System.Collections.Generic; | |
using UnityEngine; | |
public class LineGraph : MonoBehaviour { | |
class Point { | |
public int id; | |
public Vector3 pos; | |
} | |
readonly List<List<Point>> links = new List<List<Point>>(); |
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
#target photoshop | |
var doc = app.activeDocument; | |
function cTID(s) { return app.charIDToTypeID(s); }; | |
function sTID(s) { return app.stringIDToTypeID(s); }; | |
app.bringToFront(); | |
main(); |
OlderNewer