Exemplo n.º 1
0
        void DoDamage()
        {
            float   deltaTime = Time.deltaTime;
            Vector3 scale     = transform.root.localScale;
            float   damage    = (deltaTime * damagePerSecond * (scale.x / maxSize));

            tile.Damage(damage);
        }