<commit_before>#include "Scripts/NinjaSnowWar/GameObject.as"

class LightFlash : GameObject
{
    LightFlash()
    {
    }

    void FixedUpdate(float timeStep)
    {
        Light@ light = node.GetComponent("Light");
        light.color = light.color * Max(1.0 - timeStep * 10.0, 0.0);

        // Call superclass to handle lifetime
        GameObject::FixedUpdate(timeStep);
    }
}<commit_msg>Fixed NinjaSnowWar lightflash objects remaining in the scene indefinitely.<commit_after>#include "Scripts/NinjaSnowWar/GameObject.as"

class LightFlash : GameObject
{
    LightFlash()
    {
        duration = 2.0;
    }

    void FixedUpdate(float timeStep)
    {
        Light@ light = node.GetComponent("Light");
        light.color = light.color * Max(1.0 - timeStep * 10.0, 0.0);

        // Call superclass to handle lifetime
        GameObject::FixedUpdate(timeStep);
    }
}
{'fraction_non_alphanumeric': 0.11402508551881414, 'fraction_numerical': 0.018244013683010263, 'mean_word_length': 2.7203389830508473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5205966', 'n_tokens_mistral': 291, 'n_tokens_neox': 265, 'n_words': 58}