/// @function return_gameplay_state()
/// @description Returns the gameplay state, otherwise throws and error and returns undefined
with (gameplay_manager) {
return gameplay_state;
}
show_error("No instance of gameplay_manager exists", false);
return undefined;
/// @function return_gameplay_state()
/// @description Returns the gameplay state, otherwise throws and error and returns undefined
if (instance_number(gameplay_manager) > 1) {
show_error("Too many instances of gameplay_manager", false);
}
with (gameplay_manager) {
return gameplay_state;
}
show_error("No instance of gameplay_manager exists", false);
return undefined;