Exemple #1
0
    private IEnumerator DigTile()
    {
        PlayerComponent m_player = m_gameManager.LocalPlayer;

        m_player.StartDig();

        print("start cracked a land brick");
        yield return(new WaitForSeconds(diggingTime));

        /*new a land fragment for pick up*/

        //crackALandTile();
        //isCracked = true;
        m_worldManager.UpdateTileMap(index, 0);
        m_player.EndDig();
    }