static public void FastSetter(this UnityEngine.Animation o, string propertyName, UnityEngine.WrapMode value)
 {
     switch (propertyName)
     {
     case "wrapMode":
         o.wrapMode = value; return;
     }
     LBoot.LogUtil.Error("UnityEngine.Animation no Setter Found : " + propertyName);
 }
コード例 #2
0
        private void PlayAnimation(string animname, UnityEngine.WrapMode mode)
        {
            AnimationState once_anim = m_Owner.GetComponent <Animation>()[animname];

            if (once_anim != null)
            {
                once_anim.wrapMode = mode;
                m_Owner.GetComponent <Animation>().CrossFade(animname, 0.1f);
            }
        }
コード例 #3
0
 public static int set_wrapMode_wrap(long L)
 {
     try
     {
         long nThisPtr              = FCLibHelper.fc_get_inport_obj_ptr(L);
         UnityEngine.Animation ret  = get_obj(nThisPtr);
         UnityEngine.WrapMode  arg0 = (UnityEngine.WrapMode)(FCLibHelper.fc_get_int(L, 0));
         ret.wrapMode = arg0;
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }
コード例 #4
0
 static void AnimationClip_wrapMode(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.AnimationClip _this = (UnityEngine.AnimationClip)vc.csObj;
         var result = _this.wrapMode;
         JSApi.setEnum((int)JSApi.SetType.Rval, (int)result);
     }
     else
     {
         UnityEngine.WrapMode      arg0  = (UnityEngine.WrapMode)JSApi.getEnum((int)JSApi.GetType.Arg);
         UnityEngine.AnimationClip _this = (UnityEngine.AnimationClip)vc.csObj;
         _this.wrapMode = arg0;
     }
 }
コード例 #5
0
 private static ArkCrossEngine.WrapMode Convert(CrossEngineImpl.WrapMode mode)
 {
     return((ArkCrossEngine.WrapMode)(int)(CrossEngineImpl.WrapMode)(mode));
 }