コード例 #1
0
ファイル: PlayerHurt.cs プロジェクト: bvout/space-diaspora
 // Start is called before the first frame update
 private void Start()
 {
     _movement                = GetComponent <FlightMovement2D>();
     _playerHealth            = GetComponent <PlayerHealth>();
     _playerHealth.damaged   += Damage;
     _playerHealth.recovered += Recover;
     _playerHealth.dead      += Dead;
 }
コード例 #2
0
 // Start is called before the first frame update
 private void Start()
 {
     _movement = GetComponent <FlightMovement2D>();
     _health   = GetComponent <PlayerHealth>();
 }