private void Action() { if (m_nowMove.GetData().hp.Equals(0)) { return; } this.m_nowMove.Attack(); if (m_nextMove != null) { this.m_nowMove = this.m_nextMove; this.m_nextMove = null; } else { this.m_nowMove = null; } this.m_attackSpan = 1.0f; }
public void Add(ICreature_Script creature) { m_overData = null; m_captureData = creature.GetData(); for (int i = 0; i < m_list.DataList.Length; i++) { if (m_list.DataList[i].drumonName.Equals("")) { m_list.DataList[i].drumonName = creature.GetData().drumonName; m_list.DataList[i].level = creature.GetData().level; m_list.DataList[i].hp = creature.GetData().hp; m_list.DataList[i].maxHp = creature.GetData().maxHp; m_list.DataList[i].atk = creature.GetData().atk; m_list.DataList[i].def = creature.GetData().def; m_list.DataList[i].waitTime = creature.GetData().waitTime; m_list.DataList[i].elem = creature.GetData().elem; m_list.DataList[i].exp = creature.GetData().exp; return; } } m_overData = creature.GetData(); }