Есть ответ 👍

Что не так? Пишет:"error CS1001: Identifier expected"
Вот код:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class NewBehaviourScript : MonoBehaviour
{
public bool building;

// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{

}

void OnMouseEnter()
{
if (building == true)
{
transform.GetChild(0).GetComponent ().color = Color;
}
else
{
transform.GetChild(0).GetComponent ().color = Color.green;
}
}
void OnMouseExit()
{
transform.GetChild(0).GetComponent ().color = Color.;
}
}

104
449
Посмотреть ответы 2

Ответы на вопрос:

tatuxa223
4,6(33 оценок)

Это же C#.

Верно?

Советую ознакомиться вот с этим:

https://stackoverflow.com/questions/4006164/error-cs1001-identifier-expected

Объяснение:


решение

Объяснение:

a=int(input('a:'))

b=int(input('b:'))

if a>0 and b>0:

   print((a+b)/2)

else:

   print(a**2+b**2)

Популярно: Информатика