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 UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEditor.iOS.Xcode; | |
using System.IO; | |
using System.Collections.Generic; | |
public class PostBuildProcess : MonoBehaviour | |
{ | |
internal static void CopyAndReplaceDirectory(string srcPath, string dstPath) |
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 UnityEngine.UI; | |
using System.Collections; | |
public class CoinText : MonoBehaviour | |
{ | |
private Text coinText; | |
void Awake () | |
{ |
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; | |
public class DeleGateAction | |
{ | |
private const string COIN_KEY = "Coin"; | |
public static Action<int> OnCoinChange = delegate {}; | |
public static int Get() |
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 ExcelDataTest : MonoBehaviour | |
{ | |
void Start () | |
{ | |
var entityItem = Resources.Load("ExcelData/param1") as Entity_item1 ; | |
var sheet = entityItem.sheets.Find ((s) => s.name.Equals ("item1")); | |
foreach(var param in sheet.list){ |
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 EndMonoBehaviourSample : EndMonoBehaviour | |
{ | |
private Hashtable table = new Hashtable(); | |
private void Start() | |
{ | |
iTween.MoveTo(gameObject, iTween.Hash("x", 20, "looptype", iTween.LoopType.loop)); |
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 EndMonoBehaviour : MonoBehaviour | |
{ | |
bool isApplicationQuit = false; | |
private void OnApplicationQuit() | |
{ | |
isApplicationQuit = true; |
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; | |
using System.Collections; | |
public class ArgumentChangeStringToMethodSample : ArgumentChangeStringToMethod | |
{ | |
void Start () | |
{ | |
Invoke (CallTestInvoke, 1); | |
InvokeRepeating (CallTestInvoke, 2, 2); |
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; | |
using System.Collections; | |
public class ArgumentChangeStringToMethod : MonoBehaviour | |
{ | |
/// <summary> | |
/// 関数,呼出までの遅延秒数 | |
/// </summary> | |
/// <param name="action">Action.</param> |
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; | |
using System.Collections; | |
public class TestSingletonFromResourcesTestCall : MonoBehaviour | |
{ | |
void Start () | |
{ | |
TestSingletonFromResources.instance.TestCall (); | |
Invoke ((Action)SceneMove, 1.0f); |
NewerOlder