public override void init() { this._size.setToDct(); this._size["w"] = 1400; this._size["h"] = 800; this._world = new GRWorld3D("mainWorld", this.GraphMgr); this.onInit(); }
override public void init() { _size.setToDct(); _size["w"] = 1400; _size["h"] = 800; _world = new GRWorld3D("mainWorld", this.GraphMgr); onInit(); }
protected void _debugAvatar() { new CrossApp(true); ConfigManager confMgr = CrossApp.singleton.getPlugin("conf") as ConfigManager; confMgr.loadExtendConfig("gconf/avatar", (Variant v) => { GraphManager.singleton._formatAvatarConf(v); confMgr.loadExtendConfig("gconf/effect", (Variant vv) => { GraphManager.singleton._formatEffectConf(vv); confMgr.loadExtendConfig("gconf/material", (Variant vvv) => { GraphManager.singleton._formatMaterialConf(vvv); m_world = GraphManager.singleton.createWorld3D("main"); m_world.cam.pos = new Vec3(0, 0, 4); m_world.cam.lookAt(new Vec3(0, 0, 0)); m_char = m_world.createEntity(Define.GREntityType.CHARACTER) as GRCharacter3D; m_char.load(GraphManager.singleton.getCharacterConf("0")); m_char.applyAvatar(GraphManager.singleton.getAvatarConf("0", "2016")); m_char.applyAvatar(GraphManager.singleton.getAvatarConf("0", "9999")); os.sys.addGlobalEventListener(Define.EventType.UI_MOUSE_UP, (Cross.Event e) => { m_char.removeAvatar("wing"); }); }); }); }); }