Example #1
0
    // Update is called once per frame
    void Update()
    {
        gameTimer += Time.deltaTime;

        PlayerBoostControl();
        //SwapActive ();
        SwapAttack();

        if (isBossCreated)
        {
            if (bossObject == null)
            {
                if (!isStageUpgraded)
                {
                    isStageUpgraded = false;
                    NOW_STAGE      += 1;
                    isBossCreated   = false;
                    GameEventManager.AddNewEvent(EVENT_CHALLENGE_NEXT_STAGE);
                }
            }
        }
    }