示例#1
0
        internal override void Process()
        {
            var go = this.Device.Player.GameObjectManager.GetBuilderVillageGameObjectByID(this.BuildingID);

            if (go != null)
            {
                Builder_Building            b = (Builder_Building)go;
                Unit_Storage_V2_Componenent c = b.GetUnitStorageV2Component();
                c?.AddUnit(this.Unit);
            }
        }
示例#2
0
        public override void Process()
        {
            var go = Device.Player.GameObjectManager.GetGameObjectByID(BuildingID, true);

            if (go != null)
            {
                Builder_Building            b = (Builder_Building)go;
                Unit_Storage_V2_Componenent c = b.GetUnitStorageV2Component();
                c?.AddUnit(Unit);
            }
        }