Пример #1
0
    void OnClick()
    {
        BossSlot bS = transform.parent.GetComponent <BossSlot>();

        BossHolder.instance.boss = bS.prefab;
        SaveController.instance.startNewSave();
        Application.LoadLevel("s1");
    }
Пример #2
0
    void onHoldDown()
    {
        BossSlot bS = transform.parent.GetComponent <BossSlot>();

        bS.prefab.GetComponent <M_Boss>().showTooltip();
    }