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); } }
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); } }