RANI
yo im tied to make a game and there is problom
tile class using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UIElements;
public class Tile : MonoBehaviour
{
public Tile state {get; private set;}
public tillcell cell {get; private set;}
public int number {get; private set; }
private Image background;
private TextMeshProUGUI text;
private void Awake()
{
background = GetComponent<Image>();
text = GetComponent<TextMeshProUGUI>();
}
public void Setstate(tilestate state , int number)
{
this.state = state;
this.number = number;
}
}
tilestates
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(menuName = "tile")]
public class tilestate : ScriptableObject
{
public Color backroundcolor;
public Color textColor;
}
4 replies
❔ hello i need help writing a code
ok so im learning c# in school and dont remember how to do this we had to do that in class and i got it right but no we need to do it in homework and i kinda forgot
the task if write a programt that get number if bigget then 0 then true if smaller the flase any1 can help me?
150 replies