Using Unity animation event on multi-player trigger multi count ?
i use the animation event ,i get a script for the animation Component ,
void Start () {
AnimationClip gunMove = animation.GetClip("attack");
AnimationEvent aevent = new AnimationEvent();
aevent.functionName = "attackInfo"; //
aevent.time = 1.05f;
gunMove.AddEvent(aevent);
}
void attackInfo() { Debug.Log("setInfo"); }
then i instantiate 3 role to attack a cube ,the question is comming , jues one role attack the cube ,but the debug.log had print 3 info ,
setInfo UnityEngine.Debug:Log(Object)
setInfo UnityEngine.Debug:Log(Object)
setInfo UnityEngine.Debug:Log(Object)
why , and ,how i can solve this question ,thanks !!
Your answer

Follow this Question
Related Questions
Multiple custom parameters for AnimationEvents 0 Answers
How to keep animation playing when animated object exits the viewport 0 Answers
How to make a step forward for each atatck attack? 1 Answer
Animation event appearing on read-only animation only when starting scene 0 Answers
Can I call more than one function in a Animation Event? 0 Answers