<commit_before>﻿using UnityEngine;
using System.Collections;

public class Cell : BaseObj {

	public enum CellType {Empty, Player, Canon, Building};
	public CellType Type;
	SpriteRenderer sprite;
	//events
	public delegate void HitEvent(object sender, object args); public HitEvent OnHit;

	void Start(){
		sprite = gameObject.GetComponent<SpriteRenderer>();
	}

	void OnMouseEnter() {
		sprite.color = Color.cyan;
	} 

	void OnMouseExit() {
		sprite.color = Color.white;
	}
}<commit_msg>select cells<commit_after>﻿using UnityEngine;
using System.Collections;

public class Cell : BaseObj {

	public enum CellType {Empty, Player, Canon, Building};
	public CellType Type;
	public bool Selected;
	SpriteRenderer sprite;
	//events
	public delegate void HitEvent(object sender, object args); public HitEvent OnHit;

	void Start(){
		sprite = gameObject.GetComponent<SpriteRenderer>();
	}

	void OnMouseEnter() {
		if (!Selected) sprite.color = Color.cyan;
	} 

	void OnMouseExit() {
		if (!Selected) sprite.color = Color.white;
	}

	void OnMouseDown() {
		sprite.color = (sprite.color == Color.red) ? Color.white : Color.red;
		Selected = !Selected;
	}
}
{'fraction_non_alphanumeric': 0.11391304347826087, 'fraction_numerical': 0.0, 'mean_word_length': 4.587378640776699, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5793449', 'n_tokens_mistral': 380, 'n_tokens_neox': 358, 'n_words': 103}