public Core SpawnCore(CoreParameters _coreSpawnParameters)
    {
        Core _spawnedCore = InstantiateModule.InstantiateObjectWithScript <Core>(PrefabCollection.Core);

        _spawnedCore.SetupParameters(_coreSpawnParameters);
        return(_spawnedCore);
    }
Beispiel #2
0
 public void SetupParameters(CoreParameters _coreParameters)
 {
     Setup();
     HealthPoints    = _coreParameters.Hp;
     BomberSpawnRate = _coreParameters.BomberSpawnRate;
     MeteorSpawnRate = _coreParameters.MeteorSpawnRate;
     objectRadius    = 5f;
 }
Beispiel #3
0
 /// <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);
Beispiel #4
0
    public CoreParameters CreateCoreParameters(float _hp, float _meteorSpawnRate, float _bomberSpawnRate)
    {
        CoreParameters theCoreBlueprint = new CoreParameters();

        theCoreBlueprint.Hp = _hp;
        theCoreBlueprint.MeteorSpawnRate = _meteorSpawnRate;
        theCoreBlueprint.BomberSpawnRate = _bomberSpawnRate;
        return(theCoreBlueprint);
    }
Beispiel #5
0
 /// <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);
Beispiel #6
0
 => 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);
    }