Ejemplo n.º 1
0
    // Attack NPC Monster
    IEnumerator AttackMonster(float delayTime)
    {
        pcControl.Attack();
        yield return(new WaitForSeconds(delayTime));

        npcControl.Damage();
    }
Ejemplo n.º 2
0
    /* --------------------------------------------------------------------------------------------DEACTIVATED ENEMY ATTACCK TO START TESTING TURN BASED ATTACK
     * IEnumerator RandomMonsterAttack(float delayTime)
     * {
     *  yield return new WaitForSeconds(delayTime);
     *  StartCoroutine(AttackPlayer(0.7f));
     *  StartCoroutine(RandomMonsterAttack(Random.Range(3f, 6f)));
     * }
     */

    // Attack NPC Monster
    IEnumerator AttackMonster(float delayTime)
    {
        pcControl.Attack();
        yield return(new WaitForSeconds(delayTime));


        // -------------------------------------------------------------------------------------  REMEMBER TO CHANGE THIS LATER KELLE (adam)
        // !!!
        // !!!



        // DON'T FORGET THIS
        npcControl.Damage(10, Element.FIRE);
        // ^ CHANGE THAT ------------------------------------------------------------------------------------------------------------
    }