Not Monitored
Tag not monitored by Microsoft.
41,933 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Im using Unity and Xbox Live to make a sports game with a team selection screen similar to Madden
What I'm trying to do is have the controller/player to choose a side
if (playerOne.GetComponent<PlayerAuthentication>().PlayerNumber = homeTeam)
{
if( playerOne.GetComponent<PlayerAuthentication>().PlayerNumber= v >= 0.01)
{
homeTeam.GetComponent<TeamSelection>().ToggleLeft();
}
else if( playerOne.GetComponent<PlayerAuthentication>().PlayerNumber= v <= -0.01)
{
homeTeam.GetComponent<TeamSelection>().ToggleRight();
}
if( playerOne.GetComponent<PlayerAuthentication>().PlayerNumber = h >= 0.01)
{
playerOne.GetComponent<PlayerAuthentication>().PlayerNumber = homeTeam();
}
}
if ( playerOne.GetComponent<PlayerAuthentication>().PlayerNumber= roadTeam)
{
if ( playerOne.GetComponent<PlayerAuthentication>().PlayerNumber = v >= 0.01)
{
roadTeam.GetComponent<TeamSelection>().ToggleLeft();
}
else if ( playerOne.GetComponent<PlayerAuthentication>().PlayerNumber= v <= -0.01)
{
roadTeam.GetComponent<TeamSelection>().ToggleRight();
}
if( playerOne.GetComponent<PlayerAuthentication>().PlayerNumber = h <= -0.01)
{
playerOne.GetComponent<PlayerAuthentication>().PlayerNumber = homeTeam();
}
}
I keep getting this error
Error CS0029 Cannot implicitly convert type 'UnityEngine.GameObject' to 'int'
What did I get wrong?
Hello,
Welcome to Microsoft Q&A!
Microsoft Q&A is under a public preview now. Not all topics are supported now. The supported topics are listed on the right top.
Questions about Unity and Xbox Live is not supported now. Please ask this question in Xbox Live Development Forum.
Thank you!