void SetCurveAni(NcCurveAnimation.NcInfoCurve selCurveInfo) { // copy if (m_bOnlyCurve) { m_CurrentCurveAnimation.GetCurveInfo(m_OriCurveInfoIndex).m_AniCurve = selCurveInfo.GetClone().m_AniCurve; m_SelCurveInfo = selCurveInfo; } else { m_CurrentCurveAnimation.SetCurveInfo(m_OriCurveInfoIndex, selCurveInfo.GetClone()); m_SelCurveInfo = selCurveInfo; } }
public int AddCurveInfo(NcCurveAnimation.NcInfoCurve addCurveInfo) { if (this.m_CurveInfoList == null) { this.m_CurveInfoList = new List <NcCurveAnimation.NcInfoCurve>(); } this.m_CurveInfoList.Add(addCurveInfo.GetClone()); return(this.m_CurveInfoList.Count - 1); }
void UndoCurveAni() { // select init m_nObjectIndex = -1; m_nSelObjectGroupIndex = -1; m_nSelObjectProjectIndex = -1; m_SelObjectContent = null; m_SelCurveInfo = null; FXMakerMain.inst.CreateCurrentInstanceEffect(true); // Restore m_CurrentCurveAnimation.SetCurveInfo(m_OriCurveInfoIndex, m_OriCurveInfo.GetClone()); m_SelCurveInfo = null; }
public void CopyTo(NcCurveAnimation target, bool bCurveOnly) { target.m_CurveInfoList = new List <NcCurveAnimation.NcInfoCurve>(); using (List <NcCurveAnimation.NcInfoCurve> .Enumerator enumerator = this.m_CurveInfoList.GetEnumerator()) { while (enumerator.MoveNext()) { NcCurveAnimation.NcInfoCurve current = enumerator.get_Current(); target.m_CurveInfoList.Add(current.GetClone()); } } if (!bCurveOnly) { target.m_fDelayTime = this.m_fDelayTime; target.m_fDurationTime = this.m_fDurationTime; } }