Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- // Without that line, the list in ClassWindow is emptied at each compilation
- [System.Serializable]
- public class ClassA
- {
- public ClassA(){}
- public virtual void Draw()
- {
- GUILayout.Label( "AAAAAAAA" );
- }
- }
- public class ClassB : ClassA
- {
- public ClassB() : base(){}
- public override void Draw()
- {
- GUILayout.Label( "BBBBBBBB" );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement