Created
February 8, 2016 15:51
-
-
Save jagwire/ec82e9ffc561e6ef1fe4 to your computer and use it in GitHub Desktop.
Nested Class Example
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.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