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 CyanScript : 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.