Playmaker Forum
PlayMaker News => General Discussion => Topic started by: odthiago on November 12, 2018, 09:45:38 PM
-
Hi, people
Im trying to call a static method (Call Static Method - Action) but rise this error:
"Invalid Method Name or Parameters:"
I bought the "Exploder" Asset and the script of the demo scene call the static method GetInstance().
public class ExploderSingleton : MonoBehaviour
...
...
private static ExploderObject Instance;
public static ExploderObject GetInstance(){
return Instance;
}
void Awake(){
Instance = gameObject.GetComponent<ExploderObject>();
}
What can I do?
Hope you understand...
Thx a lot,
Thiago from Brazil
-
Hi,
can you make a screenshot of your action, are you setting the storeResult properly?
Bye,
Jean
-
Hi, Jean
Thx your support!! Sorry my coupled FSM, Im decoupling it slowly!
What am I doing wrong?
Thx a lot!
Thiago
-
Hi, Guys
My bad! The script ExploderSingleton wasn´t attached to the prefab.
Its working! Now the body parts of BOT is blowing up.
Sorry my inattention!
Thx a lot,
Thiago from Brazil