Beispiel #1
0
 public void SkillPressed(SkillPositionVO _skillPosition)
 {
     Skill tSkill = GetSkillByPosition(_skillPosition);
     if (tSkill == null) return;
     string t_result = tSkill.WhenPressed();
     switch (t_result)
     {
         case "Summon Minion Success":
         case "Use Magic Success":
         case "Use Card Success":
         case "Success":
             GameUIManager.Instance.SetInfo("");
             break;
         default:
             GameUIManager.Instance.SetInfo(t_result);
             break;
     }
 }
Beispiel #2
0
	public void SkillTargetBackground(SkillPositionVO _skillPosition)
	{
		
	}
Beispiel #3
0
	public void SkillTargetMinionPosition(SkillPositionVO _skillPosition, PositionVO _to)
	{
		Skill tSkill = GetSkillByPosition(_skillPosition);
		if (tSkill == null) return;
		string t_result = tSkill.WhenDraggedIntoMinionSlot(_to);
		switch (t_result)
		{
		case "Summon Minion Success":
		case "Use Magic Success":
		case "Use Card Success":
		case "Success":
			GameUIManager.Instance.SetInfo("");
			break;
		default:
			GameUIManager.Instance.SetInfo(t_result);
			break;
		}
	}
Beispiel #4
0
	public Skill GetSkillByPosition(SkillPositionVO _skillPosition)
	{
		return skillPosition [_skillPosition];
	}
Beispiel #5
0
	public void SetSkillCdText(SkillPositionVO _position, Skill _skill)
	{
		if (_position.PlayerType == PlayerType.You) {
			for (int i = 0; i < yourSkillsCD.Count; i++) {
				if (i == _position.Index) {
                    if (_skill.SkillCD == 0)
                    {
                        yourSkillsCD[i].gameObject.SetActive(false);
                        yourSkillsCD[i].cdText.text = "";
                    }
                    else
                    {
                        yourSkillsCD[i].gameObject.SetActive(true);
                        yourSkillsCD[i].cdText.text = _skill.SkillCD.ToString();
                    }
				}
			}
		} else {
			for (int i = 0; i < opponentSkillCD.Count; i++) {
				if (i == _position.Index) {
					if (_skill.SkillCD == 0)
                    {
                        opponentSkillCD [i].gameObject.SetActive(false);
						opponentSkillCD [i].cdText.text = "";
                    }
					else
                    {
                        opponentSkillCD [i].gameObject.SetActive(true);
						opponentSkillCD [i].cdText.text = _skill.SkillCD.ToString ();
                    }
				}
			}
		}
	}
Beispiel #6
0
    //protected int id;

    public virtual void Init(SkillPositionVO _position)
    {
        position = _position;
        ConcreteInit();
        skillCD = startSkillCD;	
    }