Skip to content

Instantly share code, notes, and snippets.

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 {
@sada913
sada913 / 解決策
Created December 3, 2017 14:33
解決
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
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//usingに追加
using UnityEditor;
// カスタマイズするクラスを設定
[CustomEditor(typeof(test))]
@sada913
sada913 / 使い方
Last active December 3, 2017 14:33
アドカレ
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);
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;
@sada913
sada913 / ID検索
Last active May 24, 2017 17:47
ID検索
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;
@sada913
sada913 / log出力
Last active May 24, 2017 17:23
Log出力
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);