Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nested Class Example
using UnityEngine;
using System.Collections.Generic;
namespace MHS {
public struct SUITS {
HEARTS,
SPADES,
CLUBS,
DIAMONDS
}
[serializable]
public class MyInfo {
public string name;
public int age;
public List<SUITS> suits;
}
public class MyGameBehavior : GameBehavior {
public int something;
publit float somethingElse;
public MyInfo MyActualInfo;
void Start() {}
void Update() {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment