コード例 #1
0
 // Start is called before the first frame update
 private void Start()
 {
     spriteRenderer   = gameObject.GetComponent <SpriteRenderer>();
     deathFloorScript = gameObject.GetComponent <DeathFloorBehavior>();
 }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     spriteRenderer   = gameObject.GetComponent <SpriteRenderer>();
     deathFloorScript = gameObject.GetComponent <DeathFloorBehavior>();
     objCollider      = gameObject.GetComponent <Collider2D>();
 }