Beispiel #1
0
    void Update()
    {
        timeRemaining -= Time.deltaTime;
        //Enemy enemy = space.enemy;
        //pull enemy back until they are on the black hole
        //if (deltaTime > 0.013f)
        //{
        //    if (enemy != null)
        //    {
        //        if (enemy.transform.position.x < transform.position.x)
        //        {
        //            enemy.transform.localPosition += new Vector3(pullPower, 0, 0);
        //        }
        //    }
        //    else if (gameManager.prefabPools.stackAsteroid.Count < 5)
        //    {
        //        //want to figure out how to pull the asteroids...but how to reference them...
        //    }
        //    deltaTime = 0.0f;
        //}

        if (timeRemaining <= 0.0f)
        {
            space.ChangeBlackHolePull(0.0f);
            DeactivateModule();
        }
    }