Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎.idea/.idea.Unity-Programming-Patterns/.idea/.gitignore

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/.idea.Unity-Programming-Patterns/.idea/indexLayout.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/.idea.Unity-Programming-Patterns/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Assets/MonoBehaviourLifeCycle.cs

Lines changed: 70 additions & 0 deletions
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+
}

‎Assets/MonoBehaviourLifeCycle.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /