コード例 #1
0
 private void Awake()
 {
     _controller     = GetComponent <PhysicsObject>();
     _audioSource    = GetComponent <AudioSource>();
     _spriteAnimator = GetComponent <SpriteAnimator>();
 }
コード例 #2
0
 private void Awake()
 {
     renderer = GetComponentInChildren <SpriteRenderer>();
     animator = GetComponentInChildren <SpriteAnimator>();
 }