示例#1
0
        public void PhaseUpdate(ILevelContext context)
        {
            // This method is used for spawning more enemies, or checking if the phase is completed

            if (intervalReached)
            {
                // Check to see if any enemies exist
                if (!ComponentBase.ComponentExists <ShooterEnemyAIBehavior>() && flyingVObject == null)
                {
                    // todo: prevent from calling complete phase directly
                    context.FlagAsComplete();
                }
            }
        }