コード例 #1
0
 private void EnemyKilledHandler(EnemyLifeSystem _)
 {
     if (!_coroutineIsStarted)
     {
         StartCoroutine(ApplyDilation());
     }
 }
コード例 #2
0
        private void Respawn()
        {
            if (_killedEnemy != null)
            {
                _killedEnemy.transform.position = transform.position;
                _killedEnemy.transform.rotation = transform.rotation;

                _killedEnemy.SetActiveRagdollPhysics(false);
                _killedEnemy.SetAlive();

                _killedEnemy = null;
            }
        }
コード例 #3
0
 private void EnemyKilledHandler(EnemyLifeSystem killedEnemy) =>
 _killedEnemy = killedEnemy;