コード例 #1
0
 //---------------------------------------------------------
 public void PlayAnim(Animation animation,
                      GUIBase_Widget widget,
                      GUIBase_Platform.AnimFinishedDelegate finishDelegate = null,
                      int customIdx = -1)
 {
     m_Layout.PlayAnim(animation, widget, finishDelegate, customIdx);
 }
コード例 #2
0
    //---------------------------------------------------------
    public void PlayAnim(Animation animation,
                         GUIBase_Widget widget,
                         GUIBase_Platform.AnimFinishedDelegate finishDelegate = null,
                         int customIdx = -1)
    {
        S_AnimDscr animDscr = new S_AnimDscr();

        animDscr.m_Animation = animation;
        animDscr.m_StartTime = Time.realtimeSinceStartup;
        //animDscr.m_StartTime			= Time.time;
        animDscr.m_Length               = animation.clip.length;
        animDscr.m_CustomIdx            = customIdx;
        animDscr.m_AnimFinishedDelegate = finishDelegate;
        animDscr.m_Widget               = widget;

        animDscr.m_Animation.wrapMode = animDscr.m_Animation.clip.wrapMode;

        int idx = m_PlayingAnims.Count;

        m_PlayingAnims.Add(animDscr);

        ProcessAnim(animDscr, 0.0f, idx);

        //Debug.Log("anim "+ animDscr.m_Animation.name +", Start time = "+ animDscr.m_StartTime +", Length = "+ animDscr.m_Length);
    }
コード例 #3
0
 //---------------------------------------------------------
 void AnimationRemoved(int customIdx, GUIBase_Platform.AnimFinishedDelegate finishDelegate)
 {
     if (finishDelegate != null)
     {
         finishDelegate(customIdx);
     }
 }
コード例 #4
0
 //---------------------------------------------------------
 public void PlayAnim(Animation animation,
                      GUIBase_Widget widget,
                      GUIBase_Platform.AnimFinishedDelegate finishDelegate = null,
                      int customIdx = -1)
 {
     GuiManager.GetPlatform(this).PlayAnim(animation, widget, finishDelegate, customIdx);
 }