예제 #1
0
 private void Start()
 {
     _hpController = gameObject.GetComponent <HPController>();
     _sprite       = gameObject.GetComponent <SpriteRenderer>();
     _collider     = gameObject.GetComponent <Collider2D>();
 }
예제 #2
0
 private void Start()
 {
     _hpController = gameObject.GetComponent <HPController>();
 }