Beispiel #1
0
    protected override void Awake()
    {
        ID = (int)PlayerStates.ID.God;
        base.Awake();

        m_LetterInventory = GetComponent <LetterInventory> ();
        m_ActionGodState  = new UnityAction <CommandModifier> (ExitGodState);
    }
Beispiel #2
0
 internal Player AddLetterTiles(IEnumerable <LetterTile> enumerable)
 {
     return(new Player(
                LevelPosition,
                LetterInventory.Concat(enumerable).ToArray(),
                BlankTileOfYendor
                ));
 }
Beispiel #3
0
        public Maybe <Player> RemoveLetter(char letter)
        {
            if (!LetterInventory.Any(l => l.Value == letter))
            {
                return(Maybe.None <Player>());
            }
            var letterTile = LetterInventory.First(l => l.Value == letter);

            return(new Player(
                       LevelPosition,
                       LetterInventory.Where(l => l != letterTile).ToArray(),
                       BlankTileOfYendor
                       ));
        }
 void Start()
 {
     m_LetterInventory = GetComponent <LetterInventory> ();
 }