Exemplo n.º 1
0
    //int val;

    // Use this for initialization
    void Start()
    {
        //val = 0;
        move    = false;
        addOnce = false;

        qualdScript = GameObject.Find("Quald").GetComponent <Quald> ();

        bow.onClick.AddListener(addBow);

        betweenLevels = GameObject.FindGameObjectWithTag("Play").GetComponent <LevelControl> ();
    }
    // Use this for initialization
    void Start()
    {
        if (PlayerPrefs.HasKey("THpM"))
        {
            turretHpMax = PlayerPrefs.GetInt("THpM");
        }
        else
        {
            turretHpMax = 10;
        }

        qualdScript = GameObject.Find("Quald").GetComponent <Quald> ();        //.quald;
    }
Exemplo n.º 3
0
    //public Button UpTurretDmg;

    // Use this for initialization
    void Start()
    {
        qualdScript    = GameObject.Find("Quald").GetComponent <Quald>();     //.quald;
        turretDmgBoost = 0.8f;

        if (PlayerPrefs.HasKey("TDmg"))
        {
            increment = PlayerPrefs.GetInt("TDmg");
        }
        else
        {
            increment = 0;
        }

        if (increment <= 0)
        {
            turretDmg = 1;
        }
    }