Пример #1
0
 /// <summary>
 /// 初期化
 /// </summary>
 private void Awake()
 {
     // シングルトン
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     m_sceneInstructor = SceneInstructor.instance;
 }