Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Code errors with converting

$
0
0
public List BoardPosition = new List(); public int CurrentPosition = 1; public int DiceValues = 0; public dice_raycast Dice1; public dice_raycast Dice2; void Start() { if(BoardPosition == 0) //error saying transform and int cant equal BoardPosition.Add(GameObject.FindGameObjectsWithTag("SquareBoardPosition")); // above has invalid arguments and cannot convert gameobject to transform. CurrentPosition = 1; } I' m trying to create a board game movement script, but this part of my code gives me errors. I understand what they're saying I just don't know haw to fix them.

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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