コード例 #1
0
 private void Start()
 {
     invokeSkeletons                 = GetComponent <InvokeSkeletons>();
     invokeSkeletons.OnWaveStart    += InvokeShield;
     invokeSkeletons.OnWaveFinished += InvokeWave;
     animationManager                = GetComponent <NecromancerAnimationManager>();
     enemyHealthManager              = GetComponent <EnemyHealthManager>();
     enemyHealthManager.SetAbsorption(10000);
     enemyHealthManager.OnHit += Trigger;
     rb = GetComponent <Rigidbody2D>();
 }
コード例 #2
0
 private void Start()
 {
     enemyHealthManager = GetComponent <EnemyHealthManager>();
 }
コード例 #3
0
 private void Awake()
 {
     EnemyHealthManager = GetComponent <EnemyHealthManager>();
     EnemyBehavior      = GetComponent <EnemyBehavior>();
     Rigidbody2D        = GetComponent <Rigidbody2D>();
 }