【3Dゲームエンジン】Unity質問スレッド10
■ このスレッドは過去ログ倉庫に格納されています
0222名前は開発中のものです。
2014/07/05(土) 14:40:33.98ID:uavTcDyBこれを
public int hp {
get {
return this.hp;
}
set {
this.hp = value;
}
}
って書き換えると下記のエラーがでる。なんでさ。。。
StackOverflowException: The requested operation caused a stack overflow.
PlayerInfo.set_hp (Int32 value) (at Assets/Scripts/Player/PlayerInfo.cs:13)
PlayerInfo.set_hp (Int32 value) (at Assets/Scripts/Player/PlayerInfo.cs:13)
PlayerInfo.set_hp (Int32 value) (at Assets/Scripts/Player/PlayerInfo.cs:13)
PlayerInfo.set_hp (Int32 value) (at Assets/Scripts/Player/PlayerInfo.cs:13)
PlayerInfo.set_hp (Int32 value) (at Assets/Scripts/Player/PlayerInfo.cs:13)
PlayerInfo.set_hp (Int32 value) (at Assets/Scripts/Player/PlayerInfo.cs:13)
■ このスレッドは過去ログ倉庫に格納されています