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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using ManagedNativeWifi.Simple; | |
using System; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
public class GetSSIDs : 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.Collections.Generic; | |
public class Enemy : ScriptableObject | |
{ | |
public List<Param> param = new List<Param> (); | |
[System.SerializableAttribute] | |
public class 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
//usingに追加 | |
using UnityEditor; | |
// カスタマイズするクラスを設定 | |
[CustomEditor(typeof(test))] |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class test : MonoBehaviour { | |
[SerializeField] Enemy ene; //Enemyは入力したシート名 | |
void Start () | |
{ | |
Debug.Log("inttest " + ene.param[0].testint); |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class List_Test : MonoBehaviour { | |
[System.SerializableAttribute] //クラスををシリアライズする | |
class Class_test | |
{ | |
public int Class_int; | |
public string Class_string; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class test : MonoBehaviour { | |
[SerializeField] Enemy ene; | |
[SerializeField] Enemy.Param[] e = new Enemy.Param[100]; | |
//Enemyは最初に設定したClass名 | |
void Start () { | |
int i; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class test : MonoBehaviour { | |
[SerializeField] Enemy ene; | |
//Enemyは最初に設定したClass名 | |
void Start () { | |
Debug.Log("id " + ene.param[0].id); | |
Debug.Log("name " + ene.param[0].name); |