@@ -0,0 +1,17 @@
using UnityEngine;

public class Damage : MonoBehaviour {

private float _life = 1.0f;

void Update()
{
_life -= 1 * Time.deltaTime;
if( _life <= 0)
{
Destroy(gameObject);
}
}


}
@@ -61,7 +61,7 @@ public int GetIndexOfDogStat(Dog dog)
int index = -1;
int i = 0;
bool foundDog = false;
while (!foundDog)
while (!foundDog && i < _dogStatItems.Count)
{
DogStats dogStat = _dogStatItems[i];
if (dogStat.Dog == dog)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.