Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 13 additions & 0 deletions .idea/.idea.Unity-Programming-Patterns/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea.Unity-Programming-Patterns/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.Unity-Programming-Patterns/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions Assets/MonoBehaviourLifeCycle.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MonoBehaviourLifeCycle : MonoBehaviour
{

private void Awake()
{
print("Awake");
}

// Start is called before the first frame update
void Start()
{
print("Start");
}

public int count = 0;

// Update is called once per frame
void Update()
{
count++;
// if (count % 500 == 0)
print("Update");
}

private void FixedUpdate()
{
// if (count % 500 == 0)
print("FixedUpdate");
}

private void LateUpdate()
{
// if (count % 500 == 0)
print("LateUpdate");
}


private void OnEnable()
{
print("OnEnable");
}

private void OnDisable()
{
print("OnDisable");
}

private void OnDestroy()
{
print("OnDestroy");
}

private void OnValidate()
{
print("OnValidate");
}

private void Reset()
{
print("Reset");
}



}
11 changes: 11 additions & 0 deletions Assets/MonoBehaviourLifeCycle.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading