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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class PlayerBall : MonoBehaviour | |
{ | |
[SerializeField] | |
private float rotSpeed = 100; | |
[SerializeField] |
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; | |
namespace VectorExtensions | |
{ | |
public static class Vector2SwizzleExtension | |
{ | |
public static Vector2 xx(this Vector2 v) | |
{ | |
return new Vector2(v.x,v.x); | |
} | |
public static Vector2 xy(this Vector2 v) |
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
namespace UnityEngine | |
{ | |
public static class ColorConst | |
{ | |
/// <summary> | |
/// #0048BA R:0% G:28% B:73% | |
/// </summary> | |
public static Color Absolute_Zero | |
{ |
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
v2=(2.0, 1.0) | |
UnityEngine.Debug:Log(Object) | |
SwizzleTest:Start() (at Assets/SwizzleTest.cs:11) |
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; | |
using System.Linq; | |
var r = new Random(); | |
for(var i = 0;i < 10;++i) | |
Console.WriteLine(string.Join("の", | |
new []{ | |
"風","谷","ナウシカ", | |
"天空","城ラピュタ", | |
"となり","トトロ", | |
"火垂る","墓", |
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
[Serializable] | |
public class GyazoResponse | |
{ | |
public string image_id; | |
public string permalink_url; | |
public string thumb_url; | |
public string url; | |
public string type; | |
} |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using System.Threading.Tasks; | |
using UnityEngine; | |
using UnityEngine.Networking; | |
public class GyazoSender |
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
hogehoge_alter.sql | |
hugahuga_insert.sql | |
mogamoga_update.sql |
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 MyMesh : MonoBehaviour | |
{ | |
[SerializeField] | |
private MeshFilter meshFilter; | |
private Mesh mesh; |
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
void Start () | |
{ | |
button?.onClick.AddListener(async() => { | |
var btex = await BuildTexture.CreateBlurTextureAsync(spriteRenderer.sprite.texture, 32.0f, false); | |
spriteRenderer.sprite = Sprite.Create(btex, spriteRenderer.sprite.rect, new Vector2(0.5f, 0.5f)); | |
}); | |
} |
NewerOlder