Craft Me A Quote: Learning to match exact Alphabetical cases when writing string in code is programming wisdom 101

Learning to match exact Alphabetical cases when writing string in code is programming wisdom 101.

if (refToTrafficLightchanges.lightout == “Put On Yellow Light”)
{
this.gameObject.GetComponent().color = new Color(1f, 1f, 0.0f, 1f);
}

if (refToTrafficLightchanges.lightout == “put on Yellow Light”)
{
this.gameObject.GetComponent().color = new Color(1f, 1f, 0.0f, 1f);
}

Be the first to comment

Leave a Reply

Your email address will not be published.


*