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; | |
using System.Collections; | |
/// <summary> | |
/// Unity2DのSpriteをフェードイン・アウトさせるTweener | |
/// </summary> | |
[AddComponentMenu ("WestHill/Tween/AlphaSprite")] | |
[RequireComponent (typeof(SpriteRenderer))] | |
public class TweenAlphaSprite : MonoBehaviour | |
{ |
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; | |
using System.Collections; | |
/// <summary> | |
/// Unity4.3のRigidBody2DでKinematicがONだと、トリガー系に反応しなくなるバグ回避用 | |
/// このスクリプトが有効な間、KinematicがOFFでも強制的に物理移動しなくする | |
/// </summary> | |
[RequireComponent (typeof(Rigidbody2D))] | |
public class NonKinematic2D : MonoBehaviour | |
{ |
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; | |
using System.Collections; | |
using System; | |
/// <summary> | |
/// NGUIのボタン押しっぱなし判定用 | |
/// </summary> | |
[RequireComponent(typeof(UIButton))] | |
public class HoldPressBtn : MonoBehaviour | |
{ |
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 LineCtrl | |
{ | |
/// <summary> | |
/// LINEにメッセージを送る | |
/// インストールされていない場合はアプリDLページヘ飛ぶ | |
/// </summary> | |
/// <param name="msg">メッセージ内容</param> | |
public static void SendLineMessage(string msg) { |
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; | |
using System.Collections; | |
public class RenderFrontThanNGUI : MonoBehaviour | |
{ | |
[SerializeField] | |
int rQueue = 4000; | |
void Start () | |
{ |
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; | |
using System.Collections; | |
public class RunOnUiThreadExample : MonoBehaviour | |
{ | |
void Start () | |
{ | |
#if UNITY_ANDROID | |
AndroidJavaClass unityPlayer = new AndroidJavaClass ("com.unity3d.player.UnityPlayer"); | |
AndroidJavaObject activity = unityPlayer.GetStatic<AndroidJavaObject> ("currentActivity"); |
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; | |
using System.Collections; | |
public class NotScreenResizeAndroid : MonoBehaviour | |
{ | |
void Start () | |
{ | |
NotScreenResizeAndroidSetting (); | |
} | |
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; | |
using System.Collections; | |
public class ResLoadAsyncTest : MonoBehaviour | |
{ | |
// リソースフォルダ以下のファイルパス | |
[SerializeField] | |
string filePath; | |
void Start () |
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; | |
using System.Collections; | |
public class FadeTest : MonoBehaviour | |
{ | |
void Start () | |
{ | |
StartCoroutine (FadeAlpha ()); | |
} | |
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; | |
using System.Collections; | |
[ExecuteInEditMode] | |
public class FixPlaneAspectRatio : MonoBehaviour | |
{ | |
enum HEIGHT_PARAM | |
{ | |
Y, | |
Z, |
OlderNewer