Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: shuugames on January 05, 2018, 08:42:07 AM

Title: Trigger2DEvent and Collision2DEvent won't work inside template[SOLVED]
Post by: shuugames on January 05, 2018, 08:42:07 AM
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);
  }
}
Title: Re: Trigger2DEvent and Collision2DEvent won't work inside template
Post by: Alex Chouls 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.