public bool AddFrameData(int newFrame) { CharacterEditorAttackData dt = CharacterEditorAttackData.CreateData(CharacterAttackType.BOMB); if (dt == null) { return(false); } dt.m_iFrame = newFrame; dt.m_attackType = CharacterAttackType.BOMB; this.m_attackDatas.Add(dt); return(true); }
public void ChangeFrameData(int index, CharacterAttackType attType) { CharacterEditorAttackData dt = this.m_attackDatas[index]; int iFrame = dt.m_iFrame; if (attType != dt.m_attackType) { dt = CharacterEditorAttackData.CreateData(attType); dt.m_iFrame = iFrame; dt.m_attackType = attType; this.m_attackDatas[index] = dt; } }