playMaker

Author Topic: How do you run a C# function?  (Read 1719 times)

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
How do you run a C# function?
« on: July 20, 2015, 05:48:06 PM »
From playmaker, how do you run a C# function?  Below is the script name and the function I want to run.  This is to be run when a person clicks a button. (I am re-doing part of code from someone else. I do not want to redo what he did but just how to get there).

Script Name: Settings
Function Name:  LoadNextLevel()

Here is function to call
Code: [Select]
// load next level to play
public void LoadNextLevel(){
bool last = LastLevel(); // check if last level
if(!last){
cHole++;
Application.LoadLevel(holeLevel[cHole]); // load next hole
}
}
« Last Edit: July 20, 2015, 06:17:14 PM by wheretheidivides »