This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int amountPictures = 52; | |
int picturesInRow = 3; | |
int fullRows; | |
int extraPictures; | |
fullRows = amountPictures / picturesInRow; | |
extraPictures = amountPictures % picturesInRow; | |
Console.WriteLine(fullRows); | |
Console.WriteLine(extraPictures); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int amountPicture = 52; | |
int pictureInRow = 3; | |
int fullRow; | |
int extra; | |
fullRow = amountPicture / pictureInRow; | |
extra = amountPicture - fullRow * pictureInRow; | |
Console.WriteLine(fullRow); | |
Console.WriteLine(extra); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int amountMoney; | |
string nameWife; | |
float amountChairs; | |
byte age; | |
bool canWin; | |
sbyte amountComputer; | |
short year; | |
ushort amountPens; | |
uint books; | |
ushort perfume; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string name ; | |
string zodiacSign; | |
console.Write ("Как вас зовут? "); | |
name = console.RealLine(); | |
console.Write ("какой ваш знак зодиака?"); | |
zodiacSign = console.RealLine(); | |
console.WriteLine("Вас зовут "+name+", вам 21 год, вы "+zodiacSign+" и работаете на заводе."); |
NewerOlder