nickmattinson / ZXYZ

Top-Down 2D Dungeon Crawler
1 stars 0 forks source link

Update Entity.ToString() #33

Closed MikeMMattinson closed 2 months ago

MikeMMattinson commented 2 months ago
git fetch origin
git checkout 33-update-entitytostring
MikeMMattinson commented 2 months ago
    public override string ToString()
    {
        string temp = $", Level: {level}";
        temp += $", Health: {health}";
        temp += $", Defense: {defense}";
        temp += $", Attack: {attack}";
        temp += $", Position: {transform.position}";
        return temp;
    }
MikeMMattinson commented 2 months ago

Also, while update the .ToString(), fix the Enemy.ToString()

    public override string ToString()
    {
        string temp = $"{base.ToString()}";
        temp += $", Enemy: {name}";
        temp += $", Spawnpoint: {"TBD"}";
        return temp;
    }