playMaker

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

shuugames

  • Playmaker Newbie
  • *
  • Posts: 1
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, 05:33:13 AM by jeanfabre »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Trigger2DEvent and Collision2DEvent won't work inside template
« Reply #1 on: January 05, 2018, 06: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.