18/03/20 19:31:54.93 ki/amhaJ.net
2d-shooting gameのここ↓
URLリンク(unity3d.com)
の
Transform playerBulletTransform = c.transform.parent;
// Bulletコンポーネントを取得
Bullet bullet = playerBulletTransform.GetComponent<Bullet>();
だあああああさっぱりわからねえ
なんだPlayerBulletTransformって変数の書き方?!
transform型のPlayerBulletTransformをc.transform.parentのプロパティに代入するの?
PlayerBulletTransformに最初に、c.transform.parentのトランスフォームの参照突っ込んでるとしても
なぜそんな長ったらしい変数名にする必要があったのかわからねえ