error CS0542
// make sure that your function doesn't have the same name as the script
//example:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Respawn : MonoBehaviour{
public void Respawn()
{
SceneManager.LoadScene(1);
}
}
//answer:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Respawn : MonoBehaviour{
public void Respawning()
{
SceneManager.LoadScene(1);
}
}
Also in C#:
- c# error "The name 'ViewBag' does not exist in the current context"
- change text color wpf
- No IUserTwoFactorTokenProvider<TUser> named 'Default' is registered.'
- c# to binary
- automapper c# initialize error
- how to see a tag of what you hit with raycast
- c sharp if string equals
- how to reference a child object unity
- how can convert string to int csharp
- unity how to make a ui disappear
- how to use more than one condition in ef join
- c# regex replace
- c# input integer
- razor concatonate inline
- c# resize bitmap
- c# empty IEnumerable
- c# change variable types
- c# Authorization has been denied for this request
- .net core change localhost port
- vb.net drag window without titlebar
- unity generate random color
- how to cast list to observablecollection c#
- reload scene unity
- asp.net core razor pages upload file