- Home /
Error CS0029
Hello everyone, I have a problem in Unity, its error CS0029. :( I've tried to fix them, but i can't. If someone can help me, it would be awesome. :) When i click on error, it shows me that error is here:
I am makeing an RPG game and im trying to make that my character moves where i click on map. Please help... Thank you.
bandicam-2017-06-28-02-13-34-980.jpg
(16.0 kB)
Comment
Answer by bobisgod234 · Jun 28, 2017 at 01:44 AM
one = is assignment, whereas you want comparison, which is ==.
if (InteractionObject.tag == "Interactable Object")
{
}
Your answer
![](https://koobas.hobune.stream/wayback/20220612125031im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity 3d Inventory Stacking Items [C#] 0 Answers
UI RPG Dialog Sytem 0 Answers
How can i solve this error?because i am doing the right things 2 Answers
BurgZergArcade RPG - BaseCharacter script errors. 3 Answers
Going from world to interiors of buildings in simple 3D RPG Game: teleport or new scene? 1 Answer