Jump to content

poewang13

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

poewang13's Achievements

  1. Sorry about that . I completely forgotten Delegate,my mistake Bu I have 2 event point in animation and I try this animator.EventTriggered += e => ActiveObject(); animator.EventTriggered += e => DeActiveObject(); In unity, I see two functions same time but I want to see this two func. in different time.For Example in 100th Frame I must see ActiveObject func. ,1600th frame ,I must see DeActiveObject func.In the inspector I can see different Id but I don't understandt how can ı use them another an questions I have 2 animations ,first animations have 2 event and second animationd has 1 event .How can I set this event my 3 functions ? Thank you for answer Sorry about my bad english
  2. I saw this code and animation have a event point if (animator == null) { animator = FindObjectOfType<SpriterDotNetBehaviour>().Animator; animator.EventTriggered += e => Debug.Log("Event Triggered. Source: " + animator.CurrentAnimation.Name + ". Value: " + e); } and I want to add this code private void GiveDamage() { enemy.GetComponent<Enemy>().TakeDamage(10); } How can I add this code to event point ,in animations.I check examples ,some animations play a audio clip but I didn't see anything about adding function Thank you for all answer
  3. Thank you for answer .Now I can change animations but I can't find event system.For example,I have a fire animation and after starting 0.5 seconds, I want add a event trigger for using InstantiateBullet function.How can I do that ? In spriter , I can add a point but the other things Can you record a video about this problem for everone after that can you can immobilize the first message
  4. Hi I am new user and I think , I miss somethink I watch a video in youtube about this plugin and I did samething but I have 2 problems ,firstly I can see many GreyGuy's animations in spriter but I don't see them in unity.is this normal ? and How can I change the animations ? can I change animations with your code or must I write code ? Here spriter animations window and in unity,GreyGuy and no animations
×
×
  • Create New...