Advertisement
Eresor

Untitled

Oct 17th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.22 KB | None | 0 0
  1. public class MyBehaviour : MonoBehaviour
  2. {
  3.     public Base baseObject;
  4. }
  5.  
  6. [System.Serializable]
  7. public class Base
  8. {
  9.     public int baseData;
  10. }
  11.  
  12. [System.Serializable]
  13. public class Inherited : Base
  14. {
  15.     public int newData;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement