protected override void onDrop(GameObject dragObject) { SkillToggle draggedSkillToggle = this.SkillMenu.DraggedSkillToggle; this.SkillName.text = draggedSkillToggle.Name.text; CharacterInstance activeCharacter = GameLogic.Binder.GameState.Player.ActiveCharacter; GameLogic.Binder.CommandProcessor.execute(new CmdAssignActiveSkill(activeCharacter, draggedSkillToggle.SkillInstance.SkillType), 0f); }
private void cleanup() { for (int i = this.m_skillToggles.Count - 1; i >= 0; i--) { SkillToggle item = this.m_skillToggles[i]; this.m_skillToggles.Remove(item); PlayerView.Binder.SkillTogglePool.returnObject(item); } this.m_highlightedSkillToggle = null; this.m_defaultHighlightedSkillIndex = 0; }