示例#1
0
    } //四圣阵

    public void Fourimagearrays(ref Magic m)
    {
        doingbuff.count += 1;
        Debug.Log(doingbuff.count);

        if (doingbuff.count == doingbuff.maxCount)
        {
            magiccore.endTurn();
            doingbuff.count = 0;
        }
    }
示例#2
0
 //初始化
 public void startinit()
 {
     btnGameObject = EventSystem.current.currentSelectedGameObject;
     if (magic.getFlag() == ClickFlag.defencer)
     {
         magic.startTurn();
         btnGameObject.GetComponent <Image>().color = Color.red;
     }
     else if (magic.getFlag() == ClickFlag.normal || magic.getFlag() == ClickFlag.target)
     {
         magic.endTurn();
         magic.setFlag(ClickFlag.defencer);
         btnGameObject.GetComponent <Image>().color = Color.green;
     }
 }