예제 #1
0
 private void Awake()
 {
     _light2D     = GetComponentInChildren <Light2D>();
     _fieldOfView = GetComponentInChildren <UnitFieldOfView>();
     _combat      = GetComponent <UnitCombat>();
 }
예제 #2
0
 private void Awake()
 {
     _musicBGManager = FindObjectOfType <MusicBGManager>();
     _light2D        = GetComponentInChildren <Light2D>();
     _fieldOfView    = GetComponentInChildren <UnitFieldOfView>();
 }