IndexOf
Добавлено: 13 янв 2018, 16:11
Здравствуйте. Подскажите пожалуйста что делает данный фрагмент кода:
Синтаксис:
Используется csharp
void Update()
{
if (Input.GetMouseButtonDown(0))
{
RaycastHit hitInfo;
if (Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition), out hitInfo))
int ind = smallCubes.IndexOf(hitInfo.collider.transform);
{
if (Input.GetMouseButtonDown(0))
{
RaycastHit hitInfo;
if (Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition), out hitInfo))
int ind = smallCubes.IndexOf(hitInfo.collider.transform);