Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

ERROR: CS0201 Only assignment, call, increment, decrement, await, and new object expressions can be

$
0
0
Guys, I was programming my enemy's damage, when suddenly I got the following error:

Assets\Scripts\LocalDano.cs(24,9): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement

I don't know what else to do, if anyone can help me I will be grateful. here is my code:


Code (CSharp):
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.SceneManagement;
  5.  
  6. public class LocalDano :...
ERROR: CS0201 Only assignment, call, increment, decrement, await, and new object expressions can be

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>