i have a problem in the pinSetter script. when i made the ActionMaster and old then i put the one in the start pack in his place that happened by the way i am in Complete C# Unity Developer 2D Course so Please i need anybody to help me
Rename the script to ActionMaster.
(I think its called ActionMaster2)
Open it up and find near the top where it says
public class ActionMaster2"
Change “ActionMaster2” to “ActionMaster” and then save the file.
The ActionMaster script provided in start pack is a static class. When I did it I may have watched the provided script and modified my old script to make necessary changes. You can’t make instances from static classes so I just used my old ActionMaster. If you want to use that what was provided simply use ClassName.Function() calls where needed.
For example:
currentAction = ActionMaster.Bowl(pinFall);
1 Like
thanks p4nu
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.