// Use this for initialization void Start() { magic = MagicCore.Instance; items = new List <ItemName>(); buffs = new Dictionary <BuffName, int>(); it = (ItemName)Random.Range(0, 13); while (magic.getItemHad(it)) { it = (ItemName)Random.Range(0, 13); } sk = (SkillName)Random.Range(0, (int)SkillName.count); while (magic.getSKillHad(sk)) { sk = (SkillName)Random.Range(0, (int)SkillName.count); } Ibuff = magic.itemTool.getItem(it); sklist = magic.skillTool.getSkill(sk); monster = new Monster(); mouse = new mouseevent(); lineGameObjectlist = new List <GameObject>(); pointGameObjectlist = new List <GameObject>(); itemGameObjectlist = new List <GameObject>(); buffGameObjectlist = new List <GameObject>(); isDrag = false; isAttacking = false; isShow = false; isDrop = false; instance = node; //四个结算物品 overCount = 4; //buff个数 buffCount = 0; InitializeMonsterDegreeList(); if (MapMain.Instance.IsBoss()) { InitializeMonster(MonsterType.Boss_TurnMan); } else { currentLevel = MapMain.Instance.CurrentLevel(); MonsterMatch currentMatch = ChooseMonster(); InitializeMonster(currentMatch.monster1); InitializeMonster(currentMatch.monster2); InitializeMonster(currentMatch.monster3); } // magic.addMonster(monster0.GetComponent<Monster>()); magic.startTurn(); //初始化节点位置 InitPointPos(); //初始化连线 InitLine(); //初始化花纹 InitFigure(); //初始化怪物 Initmonster(); }