コード例 #1
0
 public EnemyStartAttackParams(Transform spawnTrnasform, float bulletSpeed, EnemyAttackKinds.AttackType attackType, EnemyAttackTypeDelegate attack)
 {
     SpawnTransform = spawnTrnasform;
     BulletSpeed    = bulletSpeed;
     AttackType     = attackType;
     Attack         = attack;
 }
コード例 #2
0
        private IEnumerator BoomBullet()
        {
            yield return(new WaitForSeconds(1.0f)); // 1 초후 폭발.

            EnemyAttackTypeDelegate attack = EnemyAttackKinds.FireConeType;

            parameters = new EnemyStartAttackParams(transformCache, 2.0f, EnemyAttackKinds.AttackType.RedAttack, attack);
            attack(parameters);
            Destroy(gameObject);
        }