Exemple #1
0
    public void OnClick()
    {
        GameObject.Find("ActionScrollList").transform.position = new Vector3(-1000f, 1000f, 0.0f);

        if (this.ActionText.text == "Close Attack")
        {
            //BM.AddShortRangeModule();
            Debug.Log("Attack Close" + " -- Power:" + Damage + "  Range:" + Range);
            BM.AddDamage(Damage);
        }
        else if (this.ActionText.text == "Ranged Attack")
        {
            //BM.AddLongRangeModule();
            Debug.Log("Attack at Range" + " -- Power:" + Damage + "  Range:" + Range);
            BM.AddDamage(Damage);
        }
        else if (this.ActionText.text == "Heal")
        {
            //BM.AddHealModule();
            Debug.Log("Heal Target" + " -- Power:" + Damage + "  Range:" + Range);
            BM.AddDamage(Damage);
        }
        else if (this.ActionText.text == "Slow")
        {
            //BM.AddSlowModule();
            Debug.Log("Slow Target" + " -- Power:" + Damage + "  Range:" + Range);
            BM.AddDamage(Damage);
        }
    }