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
/********************************* | |
* メッセージキューシステム | |
* 2016-05-29 | |
*********************************/ | |
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.Assertions; |
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
/********************************* | |
SQLiteのdbを差分アップデートする奴 | |
2015-12-04 | |
*********************************/ | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SqliteMigration | |
{ | |
private SqliteDatabase dbInstance; |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/handsontable/0.20.0/handsontable.full.min.css"> | |
<style> | |
#wrapper { | |
display: -webkit-box; | |
display: -moz-box; | |
display: box; |
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; | |
public class ChangeColor : MonoBehaviour | |
{ | |
private Image target; | |
private Color originalColor; | |
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 UnityEngine.Events; | |
using UnityEngine.EventSystems; | |
public class ClickHandler : MonoBehaviour, IPointerClickHandler | |
{ | |
[SerializeField] | |
private ClickEvent clickHandler; | |
public void OnPointerClick(PointerEventData eventData) |
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 Callback = System.Action<UnityEngine.GameObject>; | |
public class ITweenAdapter : MonoBehaviour | |
{ | |
// 接続するアニメーションタイプ | |
// 必要になったら順次追加 | |
public enum RunType { | |
ScaleTo | |
} |
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 UnityEngine.EventSystems; | |
public class ScrollController : MonoBehaviour, IInitializePotentialDragHandler, IEndDragHandler | |
{ | |
public enum ScrollState { | |
Wait, | |
BeginDrag, | |
EndDrag |
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
public class Hoge : MonoBehaviour { | |
void MoveA () | |
{ | |
Action callback = () => { | |
// 何か処理 | |
}; | |
iTween.MoveBy (gameObject, iTween.Hash("y",1f,"time",0.5f, "oncomplete", "Fin", "oncompleteparams", callback)); | |
} | |
void MoveB () | |
{ |