Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
31b7b3b
New translations car-patrol.gif (French)
sashamishcheriakova Sep 21, 2023
8b2b2ad
New translations car-patrol.gif (Arabic)
sashamishcheriakova Sep 21, 2023
cc56fb8
New translations car-patrol.gif (Greek)
sashamishcheriakova Sep 21, 2023
b68adac
New translations car-patrol.gif (Japanese)
sashamishcheriakova Sep 21, 2023
9955fb0
New translations car-patrol.gif (Dutch)
sashamishcheriakova Sep 21, 2023
dc0886d
New translations car-patrol.gif (Polish)
sashamishcheriakova Sep 21, 2023
6d641dc
New translations car-patrol.gif (Xhosa)
sashamishcheriakova Sep 21, 2023
b18a17a
New translations car-patrol.gif (Zulu)
sashamishcheriakova Sep 21, 2023
90d31f1
New translations car-patrol.gif (English)
sashamishcheriakova Sep 21, 2023
931722d
New translations car-patrol.gif (Portuguese, Brazilian)
sashamishcheriakova Sep 21, 2023
84ef3e3
New translations car-patrol.gif (Marathi)
sashamishcheriakova Sep 21, 2023
064898f
New translations car-patrol.gif (Croatian)
sashamishcheriakova Sep 21, 2023
deb177b
New translations car-patrol.gif (Hindi)
sashamishcheriakova Sep 21, 2023
7337786
New translations car-patrol.gif (Welsh)
sashamishcheriakova Sep 21, 2023
16cc327
New translations car-patrol.gif (Kannada)
sashamishcheriakova Sep 21, 2023
3bf00f7
New translations car-patrol.gif (Swahili)
sashamishcheriakova Sep 21, 2023
a46fec5
New translations car-patrol.gif (Odia)
sashamishcheriakova Sep 21, 2023
6c560a6
New translations car-patrol.gif (Spanish, Latin America)
sashamishcheriakova Sep 21, 2023
8d298a7
New translations meta.yml (French)
sashamishcheriakova Sep 21, 2023
d4a0bf6
New translations meta.yml (Arabic)
sashamishcheriakova Sep 21, 2023
c9c2244
New translations meta.yml (Greek)
sashamishcheriakova Sep 21, 2023
d79c093
New translations meta.yml (Japanese)
sashamishcheriakova Sep 21, 2023
e7d7fb1
New translations meta.yml (Dutch)
sashamishcheriakova Sep 21, 2023
ba2bfe9
New translations meta.yml (Polish)
sashamishcheriakova Sep 21, 2023
f41b821
New translations meta.yml (Xhosa)
sashamishcheriakova Sep 21, 2023
d9fda53
New translations meta.yml (Zulu)
sashamishcheriakova Sep 21, 2023
644f40c
New translations meta.yml (English)
sashamishcheriakova Sep 21, 2023
f74da03
New translations meta.yml (Portuguese, Brazilian)
sashamishcheriakova Sep 21, 2023
f72922c
New translations meta.yml (Marathi)
sashamishcheriakova Sep 21, 2023
26ca664
New translations meta.yml (Croatian)
sashamishcheriakova Sep 21, 2023
73f002a
New translations meta.yml (Hindi)
sashamishcheriakova Sep 21, 2023
6dc895f
New translations meta.yml (Welsh)
sashamishcheriakova Sep 21, 2023
61b1987
New translations meta.yml (Kannada)
sashamishcheriakova Sep 21, 2023
f320d9e
New translations meta.yml (Swahili)
sashamishcheriakova Sep 21, 2023
9f59b79
New translations meta.yml (Odia)
sashamishcheriakova Sep 21, 2023
a173987
New translations meta.yml (Spanish, Latin America)
sashamishcheriakova Sep 21, 2023
71f1460
New translations step_1.md (French)
sashamishcheriakova Sep 21, 2023
1d9d794
New translations step_1.md (Arabic)
sashamishcheriakova Sep 21, 2023
b70e4b4
New translations step_1.md (Greek)
sashamishcheriakova Sep 21, 2023
629faee
New translations step_1.md (Japanese)
sashamishcheriakova Sep 21, 2023
e669b73
New translations step_1.md (Dutch)
sashamishcheriakova Sep 21, 2023
9d67746
New translations step_1.md (Polish)
sashamishcheriakova Sep 21, 2023
a456206
New translations step_1.md (Xhosa)
sashamishcheriakova Sep 21, 2023
20870e4
New translations step_1.md (Zulu)
sashamishcheriakova Sep 21, 2023
8a1bd8c
New translations step_1.md (English)
sashamishcheriakova Sep 21, 2023
6bd3940
New translations step_1.md (Portuguese, Brazilian)
sashamishcheriakova Sep 21, 2023
12ecf5e
New translations step_1.md (Marathi)
sashamishcheriakova Sep 21, 2023
dfb3920
New translations step_1.md (Croatian)
sashamishcheriakova Sep 21, 2023
1087606
New translations step_1.md (Hindi)
sashamishcheriakova Sep 21, 2023
9bd65e2
New translations step_1.md (Welsh)
sashamishcheriakova Sep 21, 2023
9bb9e82
New translations step_1.md (Kannada)
sashamishcheriakova Sep 21, 2023
9abda06
New translations step_1.md (Swahili)
sashamishcheriakova Sep 21, 2023
65b2eeb
New translations step_1.md (Odia)
sashamishcheriakova Sep 21, 2023
b45fe37
New translations step_1.md (Spanish, Latin America)
sashamishcheriakova Sep 21, 2023
3662a7d
New translations unity-comments.txt (French)
sashamishcheriakova Sep 21, 2023
9be2c77
New translations unity-comments.txt (Arabic)
sashamishcheriakova Sep 21, 2023
4f2a51c
New translations unity-comments.txt (Greek)
sashamishcheriakova Sep 21, 2023
bc2d149
New translations unity-comments.txt (Japanese)
sashamishcheriakova Sep 21, 2023
ba2c2f9
New translations unity-comments.txt (Dutch)
sashamishcheriakova Sep 21, 2023
9e6fece
New translations unity-comments.txt (Polish)
sashamishcheriakova Sep 21, 2023
c21b073
New translations unity-comments.txt (Xhosa)
sashamishcheriakova Sep 21, 2023
1384e41
New translations unity-comments.txt (Zulu)
sashamishcheriakova Sep 21, 2023
8ea3854
New translations unity-comments.txt (English)
sashamishcheriakova Sep 21, 2023
667108c
New translations unity-comments.txt (Portuguese, Brazilian)
sashamishcheriakova Sep 21, 2023
b7d7ee9
New translations unity-comments.txt (Marathi)
sashamishcheriakova Sep 21, 2023
908faaa
New translations unity-comments.txt (Croatian)
sashamishcheriakova Sep 21, 2023
a4b94b9
New translations unity-comments.txt (Hindi)
sashamishcheriakova Sep 21, 2023
cde3917
New translations unity-comments.txt (Welsh)
sashamishcheriakova Sep 21, 2023
9369b8a
New translations unity-comments.txt (Kannada)
sashamishcheriakova Sep 21, 2023
0a3876a
New translations unity-comments.txt (Swahili)
sashamishcheriakova Sep 21, 2023
e70cfcd
New translations unity-comments.txt (Odia)
sashamishcheriakova Sep 21, 2023
3ee02a2
New translations unity-comments.txt (Spanish, Latin America)
sashamishcheriakova Sep 21, 2023
efd31f2
New translations unity-translatable.txt (French)
sashamishcheriakova Sep 21, 2023
d12c2fd
New translations unity-translatable.txt (Arabic)
sashamishcheriakova Sep 21, 2023
bee190c
New translations unity-translatable.txt (Greek)
sashamishcheriakova Sep 21, 2023
03ca343
New translations unity-translatable.txt (Japanese)
sashamishcheriakova Sep 21, 2023
4da133f
New translations unity-translatable.txt (Dutch)
sashamishcheriakova Sep 21, 2023
75261c2
New translations unity-translatable.txt (Polish)
sashamishcheriakova Sep 21, 2023
7240ab1
New translations unity-translatable.txt (Xhosa)
sashamishcheriakova Sep 21, 2023
3132041
New translations unity-translatable.txt (Zulu)
sashamishcheriakova Sep 21, 2023
0b4303d
New translations unity-translatable.txt (English)
sashamishcheriakova Sep 21, 2023
392ac98
New translations unity-translatable.txt (Portuguese, Brazilian)
sashamishcheriakova Sep 21, 2023
5e3d601
New translations unity-translatable.txt (Marathi)
sashamishcheriakova Sep 21, 2023
6a07da0
New translations unity-translatable.txt (Croatian)
sashamishcheriakova Sep 21, 2023
21789fe
New translations unity-translatable.txt (Hindi)
sashamishcheriakova Sep 21, 2023
1588d85
New translations unity-translatable.txt (Welsh)
sashamishcheriakova Sep 21, 2023
6bfb799
New translations unity-translatable.txt (Kannada)
sashamishcheriakova Sep 21, 2023
a79ff7f
New translations unity-translatable.txt (Swahili)
sashamishcheriakova Sep 21, 2023
e7f7333
New translations unity-translatable.txt (Odia)
sashamishcheriakova Sep 21, 2023
09bfb45
New translations unity-translatable.txt (Spanish, Latin America)
sashamishcheriakova Sep 21, 2023
e9ba681
New translations meta.yml (French)
sashamishcheriakova Sep 23, 2023
036385b
New translations step_1.md (French)
sashamishcheriakova Sep 23, 2023
d2813a8
New translations unity-comments.txt (French)
sashamishcheriakova Sep 23, 2023
2467aa2
New translations meta.yml (Dutch)
sashamishcheriakova Sep 24, 2023
6594774
New translations step_1.md (Dutch)
sashamishcheriakova Sep 24, 2023
4971c42
New translations unity-comments.txt (Dutch)
sashamishcheriakova Sep 24, 2023
a3c04b5
New translations unity-translatable.txt (Dutch)
sashamishcheriakova Sep 24, 2023
1dc6188
New translations unity-comments.txt (French)
sashamishcheriakova Oct 16, 2023
72d8751
New translations step_1.md (Dutch)
sashamishcheriakova Nov 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added ar-SA/images/car-patrol.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions ar-SA/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Conditional behaviour with if/else
hero_image: images/banner.png
description: Conditional behaviour with if/else
version: 4
listed: false
copyedit: false
last_tested: "2021-11-22"
steps:
-
title: Conditional behaviour with if/else
39 changes: 39 additions & 0 deletions ar-SA/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
In C# you can use if/else statements to check conditions:

--- code ---
---
language: cs
---

if (condition1)
{
// code to run if condition1 is True
}
else if (condition2)
{
// code to run if condition1 is false and condition2 is True
}
else
{ // code to run if condition1 and condition2 are False }

--- /code ---

You can use comparison operators to compare variables, numbers and strings: `<` `>` `==`.

You can negate conditions using `!` so `!hasItem` is True if `hasItem` is False.

You can join conditions together using **Boolean and** `&&` and **Boolean or** `||`.

Example:

--- code ---
---
language: cs
---
if(transform.position.x < minPosition || transform.position.x > maxPosition)
{
transform.Rotate(0, 180, 0); // turn around
}
--- /code ---

![An animated gif of a car in Game view turning 180 degrees when it reaches a min OR max position.](images/car-patrol.gif)
7 changes: 7 additions & 0 deletions ar-SA/unity-comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
code to run if condition1 is True

code to run if condition1 is false and condition2 is True

code to run if condition1 and condition2 are False

turn around
3 changes: 3 additions & 0 deletions ar-SA/unity-translatable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
condition1

condition2
Binary file added cy-GB/images/car-patrol.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions cy-GB/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Conditional behaviour with if/else
hero_image: images/banner.png
description: Conditional behaviour with if/else
version: 4
listed: false
copyedit: false
last_tested: "2021-11-22"
steps:
-
title: Conditional behaviour with if/else
39 changes: 39 additions & 0 deletions cy-GB/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
In C# you can use if/else statements to check conditions:

--- code ---
---
language: cs
---

if (condition1)
{
// code to run if condition1 is True
}
else if (condition2)
{
// code to run if condition1 is false and condition2 is True
}
else
{ // code to run if condition1 and condition2 are False }

--- /code ---

You can use comparison operators to compare variables, numbers and strings: `<` `>` `==`.

You can negate conditions using `!` so `!hasItem` is True if `hasItem` is False.

You can join conditions together using **Boolean and** `&&` and **Boolean or** `||`.

Example:

--- code ---
---
language: cs
---
if(transform.position.x < minPosition || transform.position.x > maxPosition)
{
transform.Rotate(0, 180, 0); // turn around
}
--- /code ---

![An animated gif of a car in Game view turning 180 degrees when it reaches a min OR max position.](images/car-patrol.gif)
7 changes: 7 additions & 0 deletions cy-GB/unity-comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
code to run if condition1 is True

code to run if condition1 is false and condition2 is True

code to run if condition1 and condition2 are False

turn around
3 changes: 3 additions & 0 deletions cy-GB/unity-translatable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
condition1

condition2
Binary file added el-GR/images/car-patrol.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions el-GR/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Conditional behaviour with if/else
hero_image: images/banner.png
description: Conditional behaviour with if/else
version: 4
listed: false
copyedit: false
last_tested: "2021-11-22"
steps:
-
title: Conditional behaviour with if/else
39 changes: 39 additions & 0 deletions el-GR/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
In C# you can use if/else statements to check conditions:

--- code ---
---
language: cs
---

if (condition1)
{
// code to run if condition1 is True
}
else if (condition2)
{
// code to run if condition1 is false and condition2 is True
}
else
{ // code to run if condition1 and condition2 are False }

--- /code ---

You can use comparison operators to compare variables, numbers and strings: `<` `>` `==`.

You can negate conditions using `!` so `!hasItem` is True if `hasItem` is False.

You can join conditions together using **Boolean and** `&&` and **Boolean or** `||`.

Example:

--- code ---
---
language: cs
---
if(transform.position.x < minPosition || transform.position.x > maxPosition)
{
transform.Rotate(0, 180, 0); // turn around
}
--- /code ---

![An animated gif of a car in Game view turning 180 degrees when it reaches a min OR max position.](images/car-patrol.gif)
7 changes: 7 additions & 0 deletions el-GR/unity-comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
code to run if condition1 is True

code to run if condition1 is false and condition2 is True

code to run if condition1 and condition2 are False

turn around
3 changes: 3 additions & 0 deletions el-GR/unity-translatable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
condition1

condition2
Binary file added en-US/images/car-patrol.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions en-US/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Conditional behaviour with if/else
hero_image: images/banner.png
description: Conditional behaviour with if/else
version: 4
listed: false
copyedit: false
last_tested: "2021-11-22"
steps:
-
title: Conditional behaviour with if/else
39 changes: 39 additions & 0 deletions en-US/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
In C# you can use if/else statements to check conditions:

--- code ---
---
language: cs
---

if (condition1)
{
// code to run if condition1 is True
}
else if (condition2)
{
// code to run if condition1 is false and condition2 is True
}
else
{ // code to run if condition1 and condition2 are False }

--- /code ---

You can use comparison operators to compare variables, numbers and strings: `<` `>` `==`.

You can negate conditions using `!` so `!hasItem` is True if `hasItem` is False.

You can join conditions together using **Boolean and** `&&` and **Boolean or** `||`.

Example:

--- code ---
---
language: cs
---
if(transform.position.x < minPosition || transform.position.x > maxPosition)
{
transform.Rotate(0, 180, 0); // turn around
}
--- /code ---

![An animated gif of a car in Game view turning 180 degrees when it reaches a min OR max position.](images/car-patrol.gif)
7 changes: 7 additions & 0 deletions en-US/unity-comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
code to run if condition1 is True

code to run if condition1 is false and condition2 is True

code to run if condition1 and condition2 are False

turn around
3 changes: 3 additions & 0 deletions en-US/unity-translatable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
condition1

condition2
Binary file added es-LA/images/car-patrol.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions es-LA/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Conditional behaviour with if/else
hero_image: images/banner.png
description: Conditional behaviour with if/else
version: 4
listed: false
copyedit: false
last_tested: "2021-11-22"
steps:
-
title: Conditional behaviour with if/else
39 changes: 39 additions & 0 deletions es-LA/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
In C# you can use if/else statements to check conditions:

--- code ---
---
language: cs
---

if (condition1)
{
// code to run if condition1 is True
}
else if (condition2)
{
// code to run if condition1 is false and condition2 is True
}
else
{ // code to run if condition1 and condition2 are False }

--- /code ---

You can use comparison operators to compare variables, numbers and strings: `<` `>` `==`.

You can negate conditions using `!` so `!hasItem` is True if `hasItem` is False.

You can join conditions together using **Boolean and** `&&` and **Boolean or** `||`.

Example:

--- code ---
---
language: cs
---
if(transform.position.x < minPosition || transform.position.x > maxPosition)
{
transform.Rotate(0, 180, 0); // turn around
}
--- /code ---

![An animated gif of a car in Game view turning 180 degrees when it reaches a min OR max position.](images/car-patrol.gif)
7 changes: 7 additions & 0 deletions es-LA/unity-comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
code to run if condition1 is True

code to run if condition1 is false and condition2 is True

code to run if condition1 and condition2 are False

turn around
3 changes: 3 additions & 0 deletions es-LA/unity-translatable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
condition1

condition2
Binary file added fr-FR/images/car-patrol.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions fr-FR/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Comportement conditionnel avec if/else
hero_image: images/banner.png
description: Comportement conditionnel avec if/else
version: 4
listed: false
copyedit: false
last_tested: "2021-11-22"
steps:
-
title: Comportement conditionnel avec if/else
39 changes: 39 additions & 0 deletions fr-FR/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
En C#, tu peux utiliser des instructions if/else pour vérifier des conditions :

--- code ---
---
language: cs
---

if (condition1)
{
// code to run if condition1 is True
}
else if (condition2)
{
// code to run if condition1 is false and condition2 is True
}
else
{ // code to run if condition1 and condition2 are False }

--- /code ---

Tu peux utiliser des opérateurs de comparaison pour comparer des variables, des nombres et des chaînes de caractères : `<` `>` `==`.

Tu peux annuler des conditions en utilisant `!`, ainsi `!hasItem` est vrai si `hasItem` est faux.

Tu peux joindre des conditions ensemble en utilisant **Booléen et** `&&` et **Booléen ou** `||`.

Exemple :

--- code ---
---
language: cs
---
if(transform.position.x < minPosition || transform.position.x > maxPosition)
{
transform.Rotate(0, 180, 0); // turn around
}
--- /code ---

![Un gif animé d'une voiture en vue Game qui tourne à 180 degrés lorsqu'elle atteint une position minimale ou maximale.](images/car-patrol.gif)
7 changes: 7 additions & 0 deletions fr-FR/unity-comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
code à exécuter si la condition1 est vraie

code à exécuter si la condition1 est fausse et la condition2 est vraie

code à exécuter si la condition1 et la condition2 sont fausses

demi-tour
3 changes: 3 additions & 0 deletions fr-FR/unity-translatable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
condition1

condition2
Binary file added hi-IN/images/car-patrol.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions hi-IN/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Conditional behaviour with if/else
hero_image: images/banner.png
description: Conditional behaviour with if/else
version: 4
listed: false
copyedit: false
last_tested: "2021-11-22"
steps:
-
title: Conditional behaviour with if/else
Loading