コード例 #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
ファイル: Train_Unit_V2.cs プロジェクト: w4x51m/Cerberus-V3
        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);
            }
        }