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; | |
using UnityEngine.UI; | |
public class IgnoreTouch : Button, ICanvasRaycastFilter{ | |
public bool IsRaycastLocationValid (Vector2 sp, Camera eventCamera) | |
{ | |
return false; | |
} | |
} |
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
#include <iostream> | |
#include <time.h> | |
using namespace std; | |
string element[] = { | |
"H:水素", | |
"He:ヘリウム", | |
"Li:リチウム", | |
"Be:ベリリウム", |
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; | |
using UnityEngine.UI; | |
using UnityEngine.EventSystems; | |
using System.Collections; | |
public class FixedScrollRect : ScrollRect | |
{ | |
private const float POWER = 10; | |
private InfiniteScroll _infinityScroll; |
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; | |
using System.IO; | |
using System.Collections.Generic; | |
public class AtlasSprite | |
{ | |
private Dictionary<string,Sprite> spriteDic; | |
public AtlasSprite(string path) | |
{ | |
spriteDic = new Dictionary<string, Sprite> (); |
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; | |
using UnityEngine.UI; | |
using UniRx; | |
using System; | |
using System.Text.RegularExpressions; | |
using System.Collections; | |
public class RichtextAlphaAdapter : MonoBehaviour | |
{ | |
private Text text; |
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; | |
using UnityEngine.UI; | |
using System; | |
using System.Text.RegularExpressions; | |
using System.Collections; | |
public class RichtextAlphaAdapter : MonoBehaviour | |
{ | |
private Text text; | |
private Regex regex; |
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; | |
using UnityEngine.UI; | |
using UniRx; | |
using System.Collections; | |
public class ShadowAlphaAdapter : MonoBehaviour | |
{ | |
private Text text; | |
private Shadow[] shadows; |
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
#include <iostream> | |
#include <math.h> | |
float GetAverageRank(int teamNum) | |
{ | |
float sum = 0; | |
for(int i=1; i<=teamNum; ++i) | |
{ | |
sum += i; | |
} |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
[RequireComponent(typeof(SkinnedMeshRenderer))] | |
[RequireComponent(typeof(Cloth))] | |
public class DynamicCreateMesh : MonoBehaviour | |
{ | |
[SerializeField] | |
private Material _mat; |
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
// This Script refered to CircleDeployer.cs | |
// http://kan-kikuchi.hatenablog.com/entry/CircleDeployer | |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class SofmapDeployer : MonoBehaviour | |
{ | |
// 子の大きさ |
OlderNewer