Esempio n. 1
0
    private void Start()
    {
        _reactCalc = new Expressions.ReactiveCalculator (activation);
        _reactCalc.SubscribeProperty( "dangerLevel", GameplayController.instance.dangerLevel );

        _reactCalcDeact = new Expressions.ReactiveCalculator (deactivation);
        _reactCalcDeact.SubscribeProperty( "dangerLevel", GameplayController.instance.dangerLevel );
        wasSpawned = false;
    }
Esempio n. 2
0
    private void Start()
    {
        _planet = FindObjectOfType<Planet>();
        planetTransform = new PlanetSurfaceTransform( _planet );
        _reactCalc = new Expressions.ReactiveCalculator (activation);
        _reactCalc.SubscribeProperty( "dangerLevel", GameplayController.instance.dangerLevel );

        _reactCalcDeact = new Expressions.ReactiveCalculator (deactivation);
        _reactCalcDeact.SubscribeProperty( "dangerLevel", GameplayController.instance.dangerLevel );

        planetTransform.Move (transform, spawnMoveVector, 10.0f);

        SpawnThisEnemyNow11111 ();
    }