Created
May 27, 2018 08:38
-
-
Save todorok1/f67dbcfcb6e0746edce5eef7a441f37a to your computer and use it in GitHub Desktop.
Script Execution Order Settingの実験
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class MagentaScript : MonoBehaviour { | |
void Start(){ | |
Debug.Log(gameObject.name + " : Startが呼ばれました!"); | |
} | |
void Update(){ | |
if (Time.frameCount == 5){ | |
gameObject.AddComponent<Rigidbody>(); | |
Debug.Log(gameObject.name + " : Rigidbodyのアタッチ、頑張ります!"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment