Created
May 27, 2018 08:38
-
-
Save todorok1/0f28f66dff7e7abf184330d8315bb99a 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.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