Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.