예제 #1
0
 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;
     }
 }
예제 #2
0
 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);
 }
예제 #3
0
    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;
    }
예제 #4
0
 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;
     }
 }