How do you start a void that contains parameters inside?
void Start()
{
myvoid();//this does not work, only with void without parameter
}
void myvoid(int parameter)
{
How do you start a void that contains parameters inside?
void Start()
{
myvoid();//this does not work, only with void without parameter
}
void myvoid(int parameter)
{
What exactly is your question?
If you don’t want myvoid
to accept a parameter, remove the parameter from its declaration.
If you want it to accept a default argument, specify the default value in the function declaration.
Otherwise, give it a parameter when you call it.
void Start()
{
myVoid(3);
}