Skip to content

Instantly share code, notes, and snippets.

[SerializeField] private Text _text;
private void Start()
{
Sequence sequence = DOTween.Sequence();
sequence.Append(_text.DOText("замена", 1f));
sequence.AppendInterval(0.5f);
sequence.Append(_text.DOText(" дополнение", 3f)).SetRelative();
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(Rigidbody))]
public class BulletMovement : MonoBehaviour
{
[SerializeField] private Rigidbody _prefab;
[SerializeField] private float _speed;
[SerializeField] private float _timeWaitShooting;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Movement : MonoBehaviour
{
private float _speed;
private int _index;
private Transform _allPlacesPoint;
private Transform[] _arrayPlaces;
int amountPatients;
int timeReception = 10;
int hoursExpectation;
int minutesExpectation;
int spentTime;
int minutInHour = 60;
Console.Write("Пациентов в очереди:");
amountPatients = Convert.ToInt32(Console.ReadLine());
spentTime = amountPatients * timeReception;
hoursExpectation = spentTime / minutInHour;
int gold;
int priceCristall = 15;
int amountCristalls;
int payGold;
Console.Write("Сколько у вас золота?: ");
gold = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Предлагаю вам кристаллы по цене " + priceCristall + " золота за штуку, сколько вам завернуть?");
amountCristalls = Convert.ToInt32(Console.ReadLine());
payGold = amountCristalls * priceCristall;
gold = gold - payGold;
string name = "Petrov";
string surname = "Ivan";
string intermediary;
Console.WriteLine("Ваше имя:" + name);
Console.WriteLine("Ваша фамилия: " + surname);
intermediary = surname;
surname = name;
name = intermediary;
Console.WriteLine("Ваше имя:" + name);
Console.WriteLine("Ваша фамилия: " + surname);
int amountPictures = 52;
int picturesInRow = 3;
int fullRows;
int extraPictures;
fullRows = amountPictures / picturesInRow;
extraPictures = amountPictures % picturesInRow;
Console.WriteLine(fullRows);
Console.WriteLine(extraPictures);
int amountPicture = 52;
int pictureInRow = 3;
int fullRow;
int extra;
fullRow = amountPicture / pictureInRow;
extra = amountPicture - fullRow * pictureInRow;
Console.WriteLine(fullRow);
Console.WriteLine(extra);
int amountMoney;
string nameWife;
float amountChairs;
byte age;
bool canWin;
sbyte amountComputer;
short year;
ushort amountPens;
uint books;
ushort perfume;
string name ;
string zodiacSign;
console.Write ("Как вас зовут? ");
name = console.RealLine();
console.Write ("какой ваш знак зодиака?");
zodiacSign = console.RealLine();
console.WriteLine("Вас зовут "+name+", вам 21 год, вы "+zodiacSign+" и работаете на заводе.");