コード例 #1
0
        void Generate(ClassPrototypeModel model)
        {
            var template = new ClassPrototype(model);
            var content  = template.TransformText();
            var fileName = String.Concat(model.Name, "Prototype", _options.Extension);

            _files.Add(new GeneratedFile(content, fileName));
        }
コード例 #2
0
 private void Start()
 {
     pClass = GetComponent <PlayerClass>();
     if (useClassSelection)
     {
         Debug.Log(BControl.CurrentClass);
         ClassL = BControl.CurrentClass;
     }
     pClass.allPerks  = ClassL.Perks;
     pClass.onLevelUp = ClassL.OnLevel;
     pClass.TakeDefaults(ClassL.Defaults);
 }