Skip to content

Commit f5cf251

Browse files
testing adding my stuff
1 parent 7558d81 commit f5cf251

File tree

12 files changed

+657
-75
lines changed

12 files changed

+657
-75
lines changed

Diff for: .idea/.idea.Unity-Programming-Patterns/.idea/.gitignore

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/.idea.Unity-Programming-Patterns/.idea/indexLayout.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/.idea.Unity-Programming-Patterns/.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Assets/MonoBehaviourLifeCycle.cs

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
using System;
2+
using System.Collections;
3+
using System.Collections.Generic;
4+
using UnityEngine;
5+
6+
public class MonoBehaviourLifeCycle : MonoBehaviour
7+
{
8+
9+
private void Awake()
10+
{
11+
print("Awake");
12+
}
13+
14+
// Start is called before the first frame update
15+
void Start()
16+
{
17+
print("Start");
18+
}
19+
20+
public int count = 0;
21+
22+
// Update is called once per frame
23+
void Update()
24+
{
25+
count++;
26+
// if (count % 500 == 0)
27+
print("Update");
28+
}
29+
30+
private void FixedUpdate()
31+
{
32+
// if (count % 500 == 0)
33+
print("FixedUpdate");
34+
}
35+
36+
private void LateUpdate()
37+
{
38+
// if (count % 500 == 0)
39+
print("LateUpdate");
40+
}
41+
42+
43+
private void OnEnable()
44+
{
45+
print("OnEnable");
46+
}
47+
48+
private void OnDisable()
49+
{
50+
print("OnDisable");
51+
}
52+
53+
private void OnDestroy()
54+
{
55+
print("OnDestroy");
56+
}
57+
58+
private void OnValidate()
59+
{
60+
print("OnValidate");
61+
}
62+
63+
private void Reset()
64+
{
65+
print("Reset");
66+
}
67+
68+
69+
70+
}

Diff for: Assets/MonoBehaviourLifeCycle.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)