This question was
closed Jul 14, 2017 at 02:19 PM by
bellwether for the following reason:
Other
Question by
bellwether · Jul 06, 2017 at 12:57 PM ·
error messageconverting-var-type-to-other-var-type
Code errors with converting
public List<Transform> BoardPosition = new List<Transform>();
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.
Comment
Follow this Question
Related Questions
Failed to add asset file size for shared assets1.resource? 0 Answers
Failed to initialize Direct3D. 0 Answers
TouchPad Error 0 Answers
Water hose particles error? 2 Answers