Created
December 16, 2019 05:09
-
-
Save baobao/fa93313b0ed8df346df708de8a46b33b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class PrefabModeTest : MonoBehaviour | |
{ | |
void Awake() | |
{ | |
Debug.Log($"Awake : Prefabモードのワタシ {this}", this); | |
} | |
void OnEnable() | |
{ | |
Debug.Log($"OnEnable : Prefabモードのワタシ {this}", this); | |
} | |
void Start() | |
{ | |
Debug.Log($"Start : Prefabモードのワタシ {this}", this); | |
} | |
void Update() | |
{ | |
Debug.Log($"Update : Prefabモードのワタシ {this}", this); | |
} | |
private void OnValidate() | |
{ | |
if (Application.isPlaying) | |
{ | |
Debug.Log($"OnValidate : Prefabモードのワタシ {Application.isPlaying}", this); | |
} | |
else | |
{ | |
Debug.Log($"OnValidate : Prefabモードのワタシ {Application.isPlaying}", this); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment