Example #1
0
    public void RealityBreak()
    {
        if (!canMove)
        {
            canAct = true;
            CellGridState.OnUnitClicked(CurrentUnit);

            Debug.Log("enters magic");
            CurrentUnit.CurrentSkill = Skills [2];
            if (CurrentUnit.RealityBreak == 100)
            {
                Debug.Log("passes if");

                CurrentUnit.CurrentSkill.SkillActivator(CurrentUnit);

                CellGridState.OnCellAttack();
            }
        }
    }