Created
June 3, 2014 16:24
-
-
Save nastajus/ca162caf0dd413296576 to your computer and use it in GitHub Desktop.
how do I surpass this error? I don't understand what I'm doing wrong. Also tried simply Find(go) but nope to that also. error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void RemoveUserGO(GameObject go){ | |
int i = UserCreatedGOs.FindIndex( (GameObject obj) => obj.GetInstanceID = go.GetInstanceID ); | |
UserCreatedGOs.RemoveAt(i); | |
//...do more with i | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void RemoveUserGO(GameObject go){ | |
int i = UserCreatedGOs.FindIndex( obj => obj.GetInstanceID = go.GetInstanceID ); | |
UserCreatedGOs.RemoveAt(i); | |
//...do more with i | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
==' cannot be applied to operands of type
method group' and `method group'Incidentally here's the definition of method group... http://stackoverflow.com/questions/886822/what-is-a-method-group-in-c
Solved.