void Awake() { Instance = this; // populate players //for (int i = 0; i < 4; i++) //{ // playerList.Add(new Player(i)); //} }
public override void OnInspectorGUI() { myTarget = (AirConsoleManager)target; foreach (AirConsoleManager.Device d in myTarget.GetDevices().Values) { DrawDevice(d); } EditorUtility.SetDirty(myTarget); }
public Device(AirConsoleManager manager, int deviceId) { this.manager = manager; this.deviceId = deviceId; }