Пример #1
0
 void Start()
 {
     Screen.SetResolution(1280, 720, true);
     charsInRound = new int[] { 1, 1, 1, 1, 1, 4, 4, 4, 4, 4 };
     spawner      = GameObject.Find("Spawner").GetComponent <C_Spawner>();
     foreach (Transform window in GameObject.Find("Window").transform)
     {
         NGUITools.SetActive(window.gameObject, false);
     }
     if (!SaveController.instance.newGame)
     {
         SaveController.instance.prepareLoadedLevel();
     }
     else
     {
         boss = Instantiate(BossHolder.instance.boss, bossSpawnPoint, BossHolder.instance.boss.transform.rotation) as GameObject;
     }
     talentWindow.GetComponent <TalentWindow>().initialize();
     bossC = boss.GetComponent <C_Boss>();
     bossM = boss.GetComponent <M_Boss>();
     Bottombar.instance.l_bossLabel.text = bossM.eName;
     InvokeRepeating("increaseGrudge", 5f, 5f);
     Invoke("startNextDefense", 1f);
     gameState = (int)GameState.PREPARATION;
 }
Пример #2
0
    public override void showTooltip()
    {
        string tText = "[CF2945]" + eName + "[-]\n";

        tText += "[E6E477]'" + eDescription + "'[-]\n";
        tText += "Health: " + health + "\n";
        tText += "Mana: " + mana + "\n";
        tText += "Attack: " + attackPower + "\n";
        tText += "Defense: " + defence + "\n";
        tText += "Crit Chance: " + critChance + "%\n";
        C_Boss boss = GetComponent <C_Boss>();

        for (int i = 0; i < 5; i++)
        {
            if (boss.abilities[i] != null)
            {
                tText += "\n";
                tText += boss.abilities[i].tooltipMessageMock();
            }
        }
        UITooltip.ShowText(tText);
    }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     boss = GameObject.Find("C_backs").GetComponent <C_Boss> ();
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     boss = GameObject.Find ("C_backs").GetComponent<C_Boss> ();
 }