playMaker

Author Topic: Trigger2DEvent and Collision2DEvent won't work inside template[SOLVED]  (Read 55 times)

shuugames

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
As subject said. The solution is to update RunFSMAction.cs and add what's marked with green to all DoTriggerXXX and DoCollisionXXX methods:

Code: [Select]
public override void DoTriggerEnter2D(Collider2D other)
{
  if (runFsm.HandleTriggerEnter[color=green]2D[/color])
  {
    runFsm.OnTriggerEnter2D(other);
  }
}
« Last Edit: January 09, 2018, 03:33:13 AM by jeanfabre »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3240
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Trigger2DEvent and Collision2DEvent won't work inside template
« Reply #1 on: January 05, 2018, 04:20:36 PM »
Hi, thanks for reporting this. It's fixed in the next update. In the meantime, please find the fixed version attached here.