コード例 #1
0
 public static IContent Create(AutoRegisterTargetAttribute target, DebugSliderAttribute attr, System.Type type, System.Type contextType)
 {
     if (type == typeof(int))
     {
         var content = new IntSliderContent();
         content.Setup(target, attr, contextType);
         return(content);
     }
     if (type == typeof(float))
     {
         var content = new SliderContent();
         content.Setup(target, attr, contextType);
         return(content);
     }
     return(null);
 }
コード例 #2
0
 public void Setup(AutoRegisterTargetAttribute target, TAttribute attr, System.Type contextType)
 {
     m_TragetAttr = target;
     Attr         = attr;
     ContextType  = contextType;
 }