Berenger

[Berenger] Class.cs

Dec 5th, 2012
29
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UnityEngine;
  2.  
  3. // Without that line, the list in ClassWindow is emptied at each compilation
  4. [System.Serializable]
  5. public class ClassA
  6. {  
  7.     public ClassA(){}
  8.    
  9.     public virtual void Draw()
  10.     {
  11.         GUILayout.Label( "AAAAAAAA" );
  12.     }
  13. }
  14.  
  15. public class ClassB : ClassA
  16. {
  17.     public ClassB() : base(){}
  18.    
  19.     public override void Draw()
  20.     {
  21.         GUILayout.Label( "BBBBBBBB" );
  22.     }
  23. }
RAW Paste Data