float f = 0.0f; Vector3 p = GetBaseInput(); if (Input.GetKey (KeyCode.LeftShift)){ totalRun += Time.deltaTime; p = p * totalRun * shiftAdd; p.x = Mathf.Clamp(p.x, -maxShift, maxShift); p.y = Mathf.Clamp(p.y, -maxShift, maxShift); p.z = Mathf.Clamp(p.z, -maxShift, maxShift);

Updated 5 months ago

void Update () { lastMouse = Input.mousePosition - lastMouse ; lastMouse = new Vector3(-lastMouse.y * camSens, lastMouse.x * camSens, 0 ); lastMouse = new Vector3(transform.eulerAngles.x + lastMouse.x , transform.eulerAngles.y + lastMouse.y, 0); transform.eulerAngles = lastMouse; lastMouse = Input.mousePosition;

Updated 5 months ago

float mainSpeed = 5.0f; float shiftAdd = 5.0f; float maxShift = 5.0f; float camSens = 0.25f; private Vector3 lastMouse = new Vector3(255, 255, 255); private float totalRun= 0.5f;

Updated 5 months ago

using System.Collections; using System.Collections.Generic; using UnityEngine; public class FlyCamera : MonoBehaviour { float mainSpeed = 5.0f; float shiftAdd = 5.0f; float maxShift = 5.0f; float camSens = 0.25f; private Vector3 lastMouse = new Vector3(255, 255, 255); private float totalRun= 0.5f;

Updated 5 months ago

Updated 5 months ago

Updated 5 months ago

Updated 6 months ago

Updated 6 months ago

Updated 6 months ago

Задача число 5<10

Updated 6 months ago

Updated 6 months ago

eeff / 88
0 0

//Вывести на экран целые числа 10,12,14,...,60 в обратном порядке в столбик. using Sustem; { namespace 60 { Public static void Main() { Console.WriteLine("60!"); } } } { for (int i = 60; i >= 10; i-=2) { Console.WriteLine(i); } int k = 60; while (k >= 10) { Console.WriteLine(k); k -= 2; } int n=60; do { Console.WriteLine(n); n -= 2; } while (n >=10)

Updated 6 months ago

Updated 6 months ago

Updated 6 months ago

Updated 6 months ago

Updated 7 months ago

Updated 7 months ago

Updated 7 months ago

Updated 7 months ago

Updated 7 months ago