示例#1
0
    public virtual void Burn()
    {
        S.ClickControlInst.DisallowEveryInput();
        if (Selected)
        {
            Deselect();
        }
        S.GameControlInst.Hand.Remove(gameObject);

        cardUI.BurnAnimate();

        EventControl.EventCheck("Burn");
    }
示例#2
0
    public void Punch(GameObject enemy)
    {
        //animation aspect. must happen first
        GridUnit enemyGU = enemy.GetComponent <GridUnit>();

        S.GridControlInst.MakeSquares(GridControl.TargetTypes.diamond, 0, 0, enemyGU.xPosition, enemyGU.yPosition, false);
        playerGU.PokeTowards(playerGU.AdjacentPosition(enemyGU));

        enemy.GetComponent <Enemy> ().GetPunched(punchDamage);
        S.GameControlInst.AddPlays(-1);

        //triggers
        EventControl.EventCheck("Punch");
        S.ShopControlInst.GoalCheck("Punch X times");
        if (Tutorial.TutorialLevel != 0)
        {
            S.GameControlInst.gameObject.GetComponent <Tutorial>().TutorialTrigger(3);
        }

        QControl.CheckQ();
    }