Что не так? Пишет:"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
Ответы на вопрос:
Это же 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)
Популярно: Информатика
-
karinakatushkiowsqqh03.01.2023 16:30
-
mika181minecrafMilka27.04.2021 03:06
-
nanaminer25.12.2020 14:28
-
Zemoten28.01.2021 07:50
-
vikaclevervikap01a7w19.09.2021 16:55
-
Korolinaaa24.03.2020 10:32
-
Star311103.01.2023 16:52
-
rederemin200627.10.2020 07:51
-
alina188504.06.2020 10:07
-
джопер08.11.2022 17:00