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.Colletions; | |
using UniRx; | |
public class Example : MonoBehaviour | |
{ | |
void Start() | |
{ | |
//Coroutine実行中にExampleが破棄されると、エラーになる |
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 partial class Main{ | |
public class State{ | |
public State(); | |
public void Action(); | |
} | |
public State doState; | |
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.Generic; | |
public class EventManager{ | |
static Dictionary<string,Action> evtHandler = new Dictionary<string, Action>(); | |
//keyだけを登録->(key,null) | |
//keyに対応したActionを登録->(key,Action) | |
public static void AddEvent(string key,Action action){ |
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 sample{ | |
//動く | |
public int prop{get; private set;} | |
//動かない | |
public int property{ | |
get{return property;} | |
set{property = value;} |
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 MyTestScript : UnityMainMonoBehaviour { | |
void Start() { | |
UpdateManager.Instance.AddUpdateList(this); | |
} | |
public override void UnityMain() { |
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 System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class BatchBuild : MonoBehaviour { | |
//for Android | |
static void BuildProject_Android(){ |
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.Collections.Generic; | |
using System.Text; | |
public class PrefabResources : SingletonMonobehaviour<PrefabResources>{ | |
[SerializeField] | |
List<GameObject> inspecterList; |