示例#1
0
    // Use this for initialization
    void Start()
    {
        smoke = gameObject.GetComponent <ParticleSystem>();

        theLevelMaster = GameObject.FindWithTag("MainCamera").GetComponent <levelMaster>();
        spawnTimer    -= (theLevelMaster.difficulty - 1) * .1;
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        player         = GameObject.FindWithTag("Player").GetComponent <playerScript>();
        theLevelMaster = GameObject.FindWithTag("MainCamera").GetComponent <levelMaster>();

        PlaceSkillMenu();
    }
示例#3
0
    // Use this for initialization
    void Start()
    {
        player         = GameObject.FindWithTag("Player").GetComponent <playerScript>();
        theLevelMaster = GameObject.FindWithTag("MainCamera").GetComponent <levelMaster>();

        addShopItem("Laser", 5000);
        addShopItem("Piercing Shots", 6000);
        addShopItem("Fire Rate", 200);

        UpdateShop();
    }
    // Use this for initialization
    void Start()
    {
        theLevelMaster = GameObject.FindWithTag("LevelMaster").GetComponent <levelMaster>();
        if (theLevelMaster)
        {
            Debug.Log("level master set" + theLevelMaster.difficulty);
        }
        maxHealth          = health;
        transform.position = new Vector3(transform.position.x, height, transform.position.z);

        speed     *= theLevelMaster.difficulty;
        health    *= theLevelMaster.difficulty;
        maxHealth *= theLevelMaster.difficulty;
        cashValue *= theLevelMaster.difficulty;
    }
示例#5
0
    // Use this for initialization
    void Start()
    {
        smoke          = gameObject.GetComponent <ParticleSystem>();
        theLevelMaster = GameObject.FindWithTag("MainCamera").GetComponent <levelMaster>();

        speed += theLevelMaster.difficulty / 4;
        if (speed > maxSpeed)
        {
            speed = maxSpeed;
        }

        money  *= (int)(theLevelMaster.difficulty);
        health += theLevelMaster.difficulty * (int)(Mathf.Pow((float)(theLevelMaster.difficulty), 1.6f));

        enemyDamage *= (int)(theLevelMaster.difficulty);
        exp          = (int)(theLevelMaster.difficulty * 10);
        spawnTimer  -= (theLevelMaster.difficulty - 1) * .1;
    }
示例#6
0
    // Use this for initialization
    void Start()
    {
        globalData.player = gameObject;
        rb             = gameObject.GetComponent <Rigidbody>();
        theLevelMaster = GameObject.FindWithTag("MainCamera").GetComponent <levelMaster>();
        theShop        = shopHolder.GetComponent <shopScript>();


        currentHealth = maxHealth;
        currentEnergy = maxEnergy;

        Invoke("SetSkills", .1f);
        try
        {
            globalData.theSerializer.LoadPlayerData();
        }
        catch
        {
        }
        UpdateSkillValues();
        UpdateStats();
        globalData.theSkillContainer.SetPlayerColor();
    }
示例#7
0
 // Use this for initialization
 void Start()
 {
     theLevelMaster = GameObject.FindWithTag("LevelMaster").GetComponent <levelMaster>();
     mainCamera     = GameObject.Find("Main Camera1");
 }
 // Use this for initialization
 void Start()
 {
     theLevelMaster = GameObject.FindWithTag("MainCamera").GetComponent <levelMaster>();
     smoke          = gameObject.GetComponent <ParticleSystem>();
 }
示例#9
0
 // Use this for initialization
 void Start()
 {
     levelevel      = GameObject.FindWithTag("LevelMaster");
     theLevelMaster = GameObject.FindWithTag("LevelMaster").GetComponentInParent <levelMaster>();
 }