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
42 lines (35 loc) · 794 Bytes
/
Example.cs
File metadata and controls
42 lines (35 loc) · 794 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
using UnityEngine;
using System.Collections;
public class Example : MonoBehaviour
{
void Start()
{
Vector3 vector = new Vector3 (1, 2, 3);
transform.position = vector;
vector.x = 2.0f;
print ("The camera is located at " + vector);
// we can also assign plain old data types as an object
// although POD types like ints, floats, etc don't really need constructors
int i = new int();
Debug.Log (i);
}
void Update()
{
}
}
// Original Code
// // Use this for initialization
// void Start()
// {
// Vector3 vector = new Vector3(1, 2, 3);
// vector.x = 1.0f;
// transform.position = vector;
// int i = new int();
// Debug.Log(i);
// }
//
// // Update is called once per frame
// void Update()
// {
//
// }