playMaker

Author Topic: about Call Method.  (Read 2008 times)

GuaiWuLieRen

  • Playmaker Newbie
  • *
  • Posts: 1
about Call Method.
« on: December 11, 2018, 04:24:57 AM »
I am trying to call a method in a script.
1. I got the Hero GameObject from the Trigger Enter 2D Event.
2. then I got BaseHero Script Object from the Hero GameObject using Get Component Action.
3. I added a Call Method Action in a new state, and assigned the baseHero Object to this Action, but all the methods of the baseHero don't listed in the Method Name List in the right place.

does the Call Method has some limitation or how can I solve this problem.
thanks.

...

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
Re: about Call Method.
« Reply #1 on: December 12, 2018, 02:44:46 AM »
Is the method set to public?