(Please Help) A namespace cannot contain members such as fields or methods

I am trying to make a Partial play when my character dies but it says A namespace cannot contain members such as fields or methods

Hello.

This is an example of bad post.

  1. What is PArtial play?
  2. Where is your code, what you expect we to discover if dont see your code
  3. Dont say Please help in the title, if you are posting here is because you need help.
  4. The title must explain what you need. POsting an error is not a question, is just information

If you are getting an error, go find at google what that error means.


Post closed. Please remake your post following UnityAnswers rules:


What is Unity Answers?

Unity Answers is a place for asking questions and finding answers - all about Unity! Unity Answers co-exist with the Unity Forums, but they have different functions:

    Unity Answers is a place for questions that can be answered! Avoid asking questions here that are subjective, argumentative, or require extended discussion.
    Unity Forums is a place for discussions, opinions, showing off your work, getting feedback, and general community chatter.

One problem with the Unity Forums was that old threads tended to get buried, so users ended up asking the same questions over and over again. We hope that Unity Answers can function as a more efficient place for that kind of question and answer exchange, while the Unity Forums is still great for all the rest!  

Unity questions, of course! As long as your question is:

    detailed and specific
    written clearly and simply
    of interest to at least one other Unity user somewhere

... it is welcome here. Oh yes, and it should be about Unity.

Please look around to see if your question has already been asked (and maybe even answered!) before you ask. If you end up asking a question that has been asked before, it may end up getting rejected in the moderation queue or closed if it has been published. Other users will hopefully edit in links to related or similar questions to help future visitors find their way.