void UnitTest_CampSystem()
    {
        theCampSystem = new CampSystem(null);
        theCampSystem.Initialize();

        //  執行訓練
        theCampSystem.UTTrainSoldier(ENUM_Soldier.Rookie);
        theCampSystem.UTTrainSoldier(ENUM_Soldier.Rookie);
        theCampSystem.UTTrainSoldier(ENUM_Soldier.Rookie);

        theCampSystem.UTTrainSoldier(ENUM_Soldier.Captain);
        theCampSystem.UTTrainSoldier(ENUM_Soldier.Captain);
        theCampSystem.UTTrainSoldier(ENUM_Soldier.Captain);
    }
Example #2
0
    /// <summary>
    /// 初始化
    /// </summary>
    public void Initinal()
    {
        //辅助系统
        m_TipsSystem    = new TipsSystem(this);
        m_SwitchSystem  = new SwitchSystem(this);
        m_arsenalSystem = new ArsenalSystem(this);
        //界面
        m_tipsPanel = new TipsPanel();



        m_TipsSystem.Initialize();
        m_arsenalSystem.Initialize();


        //第一次打开才进行加载以下界面
        if (m_player == null)
        {
            m_mainPanel           = new MainPanel(this);
            m_mainMenuPanel       = new MainMenuPanel(this);
            m_mainMenuRightPanel  = new MainMenuRightPanel(this);
            m_readAssetPanel      = new ReadAssetPanel(this);
            m_readAssetRightPanel = new ReadAssetRightPanel(this);
            m_ChooseRolePanel     = new ChooseRolePanel(this);
            m_gameMenuRightPanel  = new GameMenuRightPanel(this);

            //界面状态系统初始化
            m_SwitchSystem.Initialize();
            //注册界面状态
            AddUIState();

            //主界面初始化
            m_mainPanel.Begin();
        }
        else
        {
            //进入游戏后加载兵营系统 以及  UI
            m_campSystem = new CampSystem(this);
            m_statePanel = new GameStatePanel(this);
            //初始化
            m_campSystem.Initialize();
            m_statePanel.Begin();
        }
    }
	void UnitTest_CampSystem()
	{
		theCampSystem =new CampSystem(null);
		theCampSystem.Initialize();

		//  執行訓練
		theCampSystem.UTTrainSoldier( ENUM_Soldier.Rookie ); 
		theCampSystem.UTTrainSoldier( ENUM_Soldier.Rookie ); 
		theCampSystem.UTTrainSoldier( ENUM_Soldier.Rookie ); 

		theCampSystem.UTTrainSoldier( ENUM_Soldier.Captain ); 
		theCampSystem.UTTrainSoldier( ENUM_Soldier.Captain ); 
		theCampSystem.UTTrainSoldier( ENUM_Soldier.Captain ); 
	}