I made a simple Die() command to deactivate my 2D Sprite, but I got an error. Any approach I can do to fix this?
private void Die()
{
GameObject.SetActive(false);
}
Error: CS0120 An object reference is required for the non-static field, method, or property 'GameObject.SetActive(bool)'