Skip to content

Instantly share code, notes, and snippets.

@jagwire
Created February 8, 2016 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jagwire/ec82e9ffc561e6ef1fe4 to your computer and use it in GitHub Desktop.
Save jagwire/ec82e9ffc561e6ef1fe4 to your computer and use it in GitHub Desktop.
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