Example #1
0
    public void StartGame(GameMapSetting unitLocation)
    {
        m_unitLocation = unitLocation;

        Unit unit 						= 	GameMgr.Ins.CreateUnit (2);
        unit.Position 					= GameMgr.Ins.m_unitLocation.m_EnermyLocation.CommandCenter;
        unit.m_ai.m_UnitAttribute.HP 	= 	unit.m_ai.m_UnitAttribute.HPIntMax;
        unit.EnableMoving 				= false;
        GameMgr.Ins.m_unitMgr.AddEnermy (unit);

        unit 							= GameMgr.Ins.CreateUnit (2);
        unit.Position 					= GameMgr.Ins.m_unitLocation.m_ArrmyLocation.CommandCenter;
        unit.m_ai.m_UnitAttribute.HP 	= unit.m_ai.m_UnitAttribute.HPIntMax;
        unit.EnableMoving 				= false;
        GameMgr.Ins.m_unitMgr.AddArmmy (unit);
    }
Example #2
0
	public void StartGame(GameMapSetting unitLocation)
	{
		m_unitLocation = unitLocation; 

		Unit unit 						= 	GameMgr.Ins.CreateUnit (2);
		unit.Position 					= GameMgr.Ins.m_unitLocation.m_EnermyLocation.CommandCenter;
		unit.m_ai.m_UnitAttribute.HP 	= 	unit.m_ai.m_UnitAttribute.HPIntMax;
		unit.EnableMoving 				= false;
		GameMgr.Ins.m_unitMgr.AddEnermy (unit);

		unit 							= GameMgr.Ins.CreateUnit (2);
		unit.Position 					= GameMgr.Ins.m_unitLocation.m_ArrmyLocation.CommandCenter;
		unit.m_ai.m_UnitAttribute.HP 	= unit.m_ai.m_UnitAttribute.HPIntMax;
		unit.EnableMoving 				= false;
		GameMgr.Ins.m_unitMgr.AddArmmy (unit);
	}