0
Q:

error CS0542

// make sure that your function doesn't have the same name as the script

//example:
public class Respawn : MonoBehaviour{
  
  public void Respawn()
    {
        //Do something
    }
}

//answer:
public class Respawn : MonoBehaviour{
  
  public void Respawning()
    {
        //Do something
    }
}
0

New to Communities?

Join the community