forked from JXPorter/OkitaUnity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample.cs
More file actions
43 lines (35 loc) · 718 Bytes
/
Example.cs
File metadata and controls
43 lines (35 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using UnityEngine;
using System.Collections;
public class Example : MonoBehaviour
{
// Use this for initialization
void Start()
{
if (false || false)
{
print("I won’t print!");
}
if (false || false || true)
{
print("I will print!");
}
if (false || false || false || false || false || false || true)
{
print("I will print!"); //just needs one true to work!
}
int enemyHealth = 10;
int myHealth = 1;
bool imStronger = myHealth > enemyHealth;
int enemyBullets = 0;
int myBullets = 11;
bool imArmed = myBullets > enemyBullets;
if (imStronger || imArmed)
{
print("I can win!");
}
}
// Update is called once per frame
void Update()
{
}
}