04.07.2022

This commit is contained in:
Plotnikov
2022-07-04 13:15:35 +03:00
parent 5fad2bcf6b
commit 696daa0b2e
7224 changed files with 3814576 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ClickGruzCube1 : MonoBehaviour
{
/* float speed = 1.0f;
private bool isMoved = false;
*//* private void OnMouseDown()
{
Camera.main.transform.position = new Vector3(-5.4f, 2.5f, 5.2f);
}*//*
void OnMouseEnter()
{
GetComponent<Renderer>().material.color = Color.green;
}
void OnMouseExit()
{
GetComponent<Renderer>().material.color = Color.clear;
}
public void FixedUpdate()
{
{
if (Input.GetMouseButtonDown(0))
{
isMoved = true;
}
if (isMoved)
{
Camera.main.transform.position = Vector3.Lerp(Camera.main.transform.position, new Vector3(-5.4f, 2.5f, 5.2f), speed * Time.deltaTime);
}
}
}
*/
}