Beispiel #1
0
    private IEnumerator AddCharacterCoroutine(CharacterType characterType)
    {
        TileManager freeTile = Board.GetLeftFreeTileInRaw(m_CurrentRawSelected);

        freeTile.AddCharacterOnTile(DatasOfType(characterType));
        m_LastTileSpawn = freeTile;
        ResetSelection();
        yield return(new WaitForSeconds(0.3f));

        GameManager.Instance.OnCharacterAdded(true);
    }