示例#1
0
 public static ICharacter Construct(ICharacterBuilder builder)
 {
     builder.AddCharacterAttr();
     builder.AddGameObject();
     builder.AddWeapon();
     builder.AddCharacterSystem();
     return(builder.GetResult());
 }
    // 建立
    public void Construct(ICharacterBuilder theBuilder)
    {
        // 利用Builder产生各部份加入Product中
        theBuilder.LoadAssetGameObject();
        theBuilder.AddOnClickScript();
        theBuilder.SetCharacterAttr();
        theBuilder.AddAI();

        // 加入管理器內
        theBuilder.AddCharacterSystem(m_GameManage);
    }
	// 建立 
	public void Construct(ICharacterBuilder theBuilder)
	{
		// 利用Builder產生各部份加入Product中
		theBuilder.LoadAsset( ++m_GameObjectID );
		theBuilder.AddOnClickScript();
		theBuilder.AddWeapon();
		theBuilder.SetCharacterAttr();
		theBuilder.AddAI();

		// 加入管理器內
		theBuilder.AddCharacterSystem( m_PBDGame );
	}
示例#4
0
        // 构建
        public void Construct(ICharacterBuilder theBuilder)
        {
            // 利用Builder产生的各个部分加入Product中
            theBuilder.LoadAsset(++m_GameObjectID);
            theBuilder.AddOnClickScript();
            theBuilder.AddWeapon();
            theBuilder.SetCharacterAttr();
            theBuilder.AddAI();

            // 加入管理器
            theBuilder.AddCharacterSystem(m_RTSGame);
        }
 /// <summary>
 /// 建造方法(流程)
 /// </summary>
 /// <param name="theBuilder"></param>
 public void Construct(ICharacterBuilder theBuilder)
 {
     //加载角色资源
     theBuilder.LoadAsset(++m_GameObjectID);
     //加载武器资源
     theBuilder.SetWeapon();
     //设置属性
     theBuilder.SetCharacterAttr();
     //设置AI
     theBuilder.SetAI();
     // 加入管理器
     theBuilder.AddCharacterSystem(m_GM);
 }