public Core SpawnCore(CoreParameters _coreSpawnParameters) { Core _spawnedCore = InstantiateModule.InstantiateObjectWithScript <Core>(PrefabCollection.Core); _spawnedCore.SetupParameters(_coreSpawnParameters); return(_spawnedCore); }
public void SetupParameters(CoreParameters _coreParameters) { Setup(); HealthPoints = _coreParameters.Hp; BomberSpawnRate = _coreParameters.BomberSpawnRate; MeteorSpawnRate = _coreParameters.MeteorSpawnRate; objectRadius = 5f; }
/// <summary> /// Creates a new <see cref="RelationalTypeMappingParameters" /> parameter object with the given /// converter composed with any existing converter and set on the new parameter object. /// </summary> /// <param name="converter"> The converter. </param> /// <returns> The new parameter object. </returns> public RelationalTypeMappingParameters WithComposedConverter([CanBeNull] ValueConverter converter) => new RelationalTypeMappingParameters( CoreParameters.WithComposedConverter(converter), StoreType, DbType, Unicode, Size, FixedLength);
public CoreParameters CreateCoreParameters(float _hp, float _meteorSpawnRate, float _bomberSpawnRate) { CoreParameters theCoreBlueprint = new CoreParameters(); theCoreBlueprint.Hp = _hp; theCoreBlueprint.MeteorSpawnRate = _meteorSpawnRate; theCoreBlueprint.BomberSpawnRate = _bomberSpawnRate; return(theCoreBlueprint); }
/// <summary> /// Creates a new <see cref="RelationalTypeMappingParameters" /> parameter object with the given /// converter composed with any existing converter and set on the new parameter object. /// </summary> /// <param name="converter"> The converter. </param> /// <returns> The new parameter object. </returns> public RelationalTypeMappingParameters WithComposedConverter([CanBeNull] ValueConverter converter) => new RelationalTypeMappingParameters( CoreParameters.WithComposedConverter(converter), StoreType, StoreTypePostfix, DbType, Unicode, Size, FixedLength, Precision, Scale, PrecisionAndScaleOverriden);
=> new RelationalTypeMappingParameters( CoreParameters, mappingInfo.StoreTypeName ?? StoreType,
public Stage CreateStage(Vector3 _playerFollowLocation, float stageDuration, float meteorSpawnTimeStep, float bomberSpawnTimeStep, CoreParameters passCoreParameters) { Stage newCreatedStage = new Stage(); newCreatedStage.isItCoreStage = true; newCreatedStage.FollowPosition = _playerFollowLocation; newCreatedStage.DurationOfStage = stageDuration; newCreatedStage.MeteorsSpawnSpeed = meteorSpawnTimeStep; newCreatedStage.BombersSpawnSpeed = bomberSpawnTimeStep; newCreatedStage.CoreParameters = passCoreParameters; return(newCreatedStage); }