예제 #1
0
    // Update is called once per frame
    void Update()
    {
        bulletManager.CheckBulletList();
        bulletManager.MoveBullets();
        engine.Move();
        if (bossFight)
        {
            sBoss.Move();
            collisionManager.CollideShipBossBullets();
            collisionManager.CollideBossBullets();
            bossHealth.TickImmunityTime();
        }

        if (asteroidFight)
        {
            asteroidManager.MoveAsteroids();
            collisionManager.CollideAsteroidsBullets();
            collisionManager.CollideShipAsteroids();
            asteroidManager.checkWin();
        }
        bulletManager.TickBulletTime();
        health.TickImmunityTime();
    }