协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
unity-animation【开发与工程】Unity Animation skill for Animator controllers, Animation Rigging, Timeline integration, and animation state machines.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Animation system implementation and configuration in Unity.
This skill provides capabilities for implementing character and object animation using Unity's Animator, Animation Rigging, and Timeline systems.
public class CharacterAnimator : MonoBehaviour
{
private Animator animator;
private static readonly int SpeedHash = Animator.StringToHash("Speed");
private static readonly int JumpTrigger = Animator.StringToHash("Jump");
void Update()
{
float speed = GetMovementSpeed();
animator.SetFloat(SpeedHash, speed, 0.1f, Time.deltaTime);
if (Input.GetButtonDown("Jump"))
{
animator.SetTrigger(JumpTrigger);
}
}
}
[RequireComponent(typeof(RigBuilder))]
public class AimRig : MonoBehaviour
{
[SerializeField] private MultiAimConstraint aimConstraint;
[SerializeField] private Transform aimTarget;
public void SetAimWeight(float weight)
{
aimConstraint.weight = weight;
}
}