Exemple #1
0
        /// <summary>
        /// Updates UI for Equipped Spells
        /// </summary>
        private void UpdateSpellHUD()
        {
            CastingManager mgr = PlayerManager.Instance.CastingManager;

            for (ushort i = 0; i < currentSpells.Length; i++)
            {
                currentSpells[i].SetSpell(mgr.GetSpell(i));
            }
            if (equipSelection.HasValue)
            {
                currentSpells[equipSelection.Value].Select();
            }
        }
Exemple #2
0
    void Start()
    {
        castManager = FindObjectOfType <CastingManager>();
        if (targeting.isBeingUsed)
        {
            isUsingLanes = false;
        }
        else
        {
            isUsingLanes = true;
        }

        collider = GetComponent <Collider2D>();
        //collider.enabled = false;
    }
Exemple #3
0
    void Start()
    {
        spellSpawner  = FindObjectOfType <CastSpell>();
        mana          = FindObjectOfType <ManaBar>();
        castManager   = FindObjectOfType <CastingManager>();
        clickListener = FindObjectOfType <ClickListener>();

        //Create platform of which to draw on
        platform = Application.platform;

        //Load gesture templates
        TextAsset[] filePaths = Resources.LoadAll <TextAsset>("CustomGestureSet/");
        foreach (TextAsset filePath in filePaths)
        {
            trainingSet.Add(GestureIO.ReadGestureFromXML(filePath.text));
        }
    }