Exemplo n.º 1
0
    void StartAttacking()
    {
        // converge on the player
        moveToPlayer = true;

        // add this NPC to the list of attacking NPCs
        playerState.AddAttackingNPC(this.gameObject);
        Task.current.Succeed();
    }