using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Candy : MonoBehaviour
{
private static Color selectedColor = new Color(0.5f, 0.5f, 0.5f, 1.0f);
private static Candy previousSelected = null;
private SpriteRenderer spriteRenderer;
private bool isSelected = false;
public int id;
private Vector2[] adjacentDirections = new Vector2[]
{
Vector2.up,
Vector2.down,
Vector2.left,
Vector2.right
};
private void Awake()
{
spriteRenderer = GetComponent<SpriteRenderer>();
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}```
¿Quieres ver más aportes, preguntas y respuestas de la comunidad?