Quantcast
Channel: Questions in topic: "script referencing"
Viewing all articles
Browse latest Browse all 41

error CS0131 Assets/route1.cs(12,25): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer.

$
0
0
really would like some help to make this right. i know its probably something easy I just keep running into a blank wall. first script: public class route1 : MonoBehaviour { public bool r1; void OnMouseDown() { if (r1 = true) { WR_R1 = true; // line im having troubles with } else if (r1 = false) { Debug.Log ("wrong play"); } } } Second script: public class WR_R1 : MonoBehaviour { void Update(){ iTween.MoveTo(gameObject, iTween.Hash("path", iTweenPath.GetPath("WR_R1"), "time", 9.5)); } } Any help or a point into the right direction would be great and very helpful.

Viewing all articles
Browse latest Browse all 41

Trending Articles



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