<commit_before>﻿using UnityEngine;
using System.Collections;
using Matcha.Game.Tweens;


public class InteractiveEntity : MonoBehaviour
{
    public enum EntityType { none, prize, weapon };
    public EntityType entityType;

    [HideInInspector]
    public bool alreadyCollided = false;
    public bool disableIfOffScreen = true;
    public int worth;

    void OnBecameInvisible() 
    {<commit_msg>Add automatic placement for Prizes.<commit_after>﻿using UnityEngine;
using System;
using System.Collections;
using Matcha.Game.Tweens;


public class InteractiveEntity : MonoBehaviour
{
    public enum EntityType { none, prize, weapon };
    public EntityType entityType;

    [HideInInspector]
    public bool alreadyCollided = false;
    public bool disableIfOffScreen = true;
    public int worth;

    void Start()
    {
        switch (entityType)
        {
        case EntityType.none:
            break;

        case EntityType.prize:
                // still buggy
                // needs to be more succint
                transform.position = new Vector3(transform.position.x, (float)(Math.Ceiling(transform.position.y) - .623f), transform.position.z);
            break;

        case EntityType.weapon:

            break;
        }
    }

    void OnBecameInvisible() 
    {
{'fraction_non_alphanumeric': 0.07823392718822618, 'fraction_numerical': 0.003098373353989156, 'mean_word_length': 2.5397260273972604, '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': '5498486', 'n_tokens_mistral': 372, 'n_tokens_neox': 350, 'n_words': 98}