Example #1
0
    public void AddDogToInventory(Dog dog)
    {
        GameController.LevelGeneration.RemoveFromGrid(dog.gameObject);

        _dogInventory.Add (dog);

        if (dog.Creature.CurrentState == State.Follow) {
            _numActiveDogs++;
            foreach (Dog doge in _dogInventory)
                doge.PositionDog();
        }

        dog.Attached (this);
    }