14/06/06 23:33:13.92 NGa64/Th.net
>>501
String渡す形式のメソッドもあるぞい
HingeJoint hinge = gameObject.GetComponent("HingeJoint") as HingeJoint;
SomeScript ss = gameObject.GetComponent("SomeScript") as SomeScript;
でも任意の文字列でってなると
object anObject = gameObject.GetComponent("HOGE"+id);
とか左辺がobjectにしかできずにこのあと型認識のif文がつきまとうし結局意味なくない?
>>499のやりたいことがイマイチ把握できんわ