Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created May 27, 2018 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/f67dbcfcb6e0746edce5eef7a441f37a to your computer and use it in GitHub Desktop.
Save todorok1/f67dbcfcb6e0746edce5eef7a441f37a to your computer and use it in GitHub Desktop.
Script Execution Order Settingの実験
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