【Unity エラー】CS0103 : タイプミスの可能性
テキストに書かれていない、認識できないものがある。
例1
(タイプミス)
error CS0103: The name `cal' does not exist in the current context
if(cal.gameObject.transform.tag == "floorUpper"){ floor_Below = false; }
「col」の書き間違え
例2
Assets/Scripts/FlickManager2.cs(230,76): error CS0103: The name `ItemSprite' does not exist in the current context
if(ItemObj.GetComponent<SpriteRenderer>().sprite = ItemSprite[1]){ SituationCreater2.instance.CorrectSwipe(); }
以下でエラーがなくなる。
if(ItemObj.GetComponent<SpriteRenderer>().sprite == ItemSprite[1]){ SituationCreater2.instance.CorrectSwipe(); }