コード例 #1
0
 protected void SetAnimationFloatParameter(SetAnimationFloatParameter args)
 {
     try{
         if (modelCache.ContainsKey(args.entity))
         {
             Animator animatorComponent = modelCache[args.entity].component.animatorComponent;
             if (animatorComponent != null)
             {
                 animatorComponent.SetFloat(args.key, args.value);
             }
         }
     }catch {
         Debug.Log(args.entity + " does not have animation parameter: " + args.key);
     }
 }