Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script Execution Order Settingの実験
using System.Collections.Generic;
using UnityEngine;
public class YellowScript : 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.