秩沅的博客给陷阱添加BOX Collider,并且勾选上IS Tigger,目的:将碰撞器改为触发器。 2.添加代码(让主人公掉血) using System.Collections; using System.Collections.Generic; using UnityEngine; public class DAMAGE : ...
泥烟的博客 // OnStateEnter is called when a transition starts and the state machine starts to evaluate this state override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex...