示例#1
0
    protected override void DoExtraOnEntered()
    {
        shootEnemies = new List <ShootEnemy>(this.GetComponentsInChildren <ShootEnemy>());
        shootEnemies.ForEach(shootEnemy => shootEnemy.AddEventListener(this.gameObject));

        dude = this.GetComponentInChildren <Dude>();
        dude.AddEventListener(this.gameObject);
    }