SkillBaseIt oneSkill = null;
System.Type type = System.Type.GetType(string.Format("{0}It", className));
oneSkill = (SkillBaseIt)playerModel.AddComponent(type);
Unity根据变量来添加脚本
最新推荐文章于 2022-10-10 23:48:13 发布
SkillBaseIt oneSkill = null;
System.Type type = System.Type.GetType(string.Format("{0}It", className));
oneSkill = (SkillBaseIt)playerModel.AddComponent(type);