I want to check if the first letter of the name of the gameobject equals T.
I wrote following
if(string.Equals(other.gameObject.transform.parent.gameObject.name[0],"T")){
DoStuff;
}
Debug.Log ("(T)("+other.gameObject.transform.parent.gameObject.name[0]+")");
The Debuglog says (T)(T) but it never goes into the If method.